Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Merging V20.0 fixes into develop in prep for next release #622

Merged
merged 5 commits into from
Dec 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# eosjs ![npm](https://img.shields.io/npm/dw/eosjs.svg)
# eosjs
[![Build Status](https://travis-ci.org/EOSIO/eosjs.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs) [![npm version](https://badge.fury.io/js/eosjs.svg)](https://badge.fury.io/js/eosjs) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ![npm](https://img.shields.io/npm/dw/eosjs.svg)

Javascript API for integration with EOSIO-based blockchains using [EOSIO RPC API](https://developers.eos.io/eosio-nodeos/reference).

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@types/jest": "24.0.6",
"@types/node": "11.9.4",
"@types/text-encoding": "0.0.35",
"babel-cli": "6.26.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.7.0",
"babel-preset-stage-1": "6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion src/eosjs-jsonrpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ export class JsonRpc implements AuthorityProvider, AbiProvider {

/** Raw call to `/v1/chain/get_code` */
public async get_code(accountName: string): Promise<GetCodeResult> {
return await this.fetch('/v1/chain/get_code', { account_name: accountName });
return await this.fetch('/v1/chain/get_code', {
account_name: accountName,
code_as_wasm: true
});
}

/** Raw call to `/v1/chain/get_currency_balance` */
Expand Down
1 change: 1 addition & 0 deletions src/tests/eosjs-jsonrpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ describe('JSON RPC', () => {
const expParams = {
body: JSON.stringify({
account_name: accountName,
code_as_wasm: true,
}),
method: 'POST',
};
Expand Down
Loading