Closed shrimpliu closed 6 years ago
yes, plase give examples details of action
.. revised comment ..
eosio.system.abi has the transfer
function and gets deployed as 'eosio' so you can't use the eosio account for this .. Additionally, eosjs uses a local cache of eosio.system.abi so it will not let you overwrite it. This is why it could not understand your action.data object and it is expecting hex (aka binary) instead.
So, I deployed under an account called eosio.bios
..
eos.contract('eosio.bios', (err, c)=>{console.log(err); eosio_bios=c})
eosio_bios.setpriv('eosio.bios', 1, (err, res) => {console.log(err, res)}) // { authorization: 'eosio.bios' } implied
Then got this error: "eosio.bios does not have permission to call this API"
Using eosjs 8.0.1 ..
So, I'm still investigating the setpriv error..
"eosio.bios does not have permission to call this API"
This could be a back-end issue.. Kevin is talking to Anton about this..
There are some very brief notes on when and how to load eosio.bios in docker/up.sh .. The EOS team plans to add detailed documentation about this process. Let me know if you have any questions about this, I believe I understand the basics..
After I deployed the
eosio.bios
contract, I try to executesetpriv
action.Then jump out of the exception:
Error is located here in file
eosjs/lib/structs.js
:Do you have any documentation or insight that could help?