You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
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
Execute this code:
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")
See error message:
(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):
OS: [e.g. UBUNTU]
Browser [e.g. Node]
Version [e.g. 16]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
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.