-
Notifications
You must be signed in to change notification settings - Fork 460
Returning WAST from get_code is no longer supported #390
Comments
@stefanzarembinski Hello, |
Getting WAST via get_code was deprecated in 1.2.0 and removed in 1.2.2. Yet the To reproduce, having a node listening, with a node prompt, do:
|
I see, this can be misleading: I mean: |
Added argument to default |
Version of EOSJS
eosjs@20.0.0-beta1
Describe the bug
rpc.get_code(account_name) fails with the this error message:
... Error: Returning WAST from get_code is no longer supported ...
To Reproduce
const eosjs = require('eosjs');
const fetch = require('node-fetch');
const rpc = new eosjs.Rpc.JsonRpc('http://127.0.0.1:8888', { fetch });
(async (account_name) => {
result = await rpc.get_code(account_name);
console.log(result)
})("eosio")
(node:1590) UnhandledPromiseRejectionWarning: Error: Returning WAST from get_code is no longer supported
at new RpcError (/mnt/c/Workspaces/EOS/eosfactory/node_modules/eosjs/dist/eosjs-rpcerror.js:22:28)
at JsonRpc. (/mnt/c/Workspaces/EOS/eosfactory/node_modules/eosjs/dist/eosjs-jsonrpc.js:117:35)
at step (/mnt/c/Workspaces/EOS/eosfactory/node_modules/eosjs/dist/eosjs-jsonrpc.js:35:23)
at Object.next (/mnt/c/Workspaces/EOS/eosfactory/node_modules/eosjs/dist/eosjs-jsonrpc.js:16:53)
..........................
Expected behavior
Obvious
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: