Closed MikkySnow closed 6 years ago
try ./cleos.sh instead of cleos
Yes, you need the "user" account need to authorize "test" account eosio.code permission with his active permission. i.e.
cleos set account permission user active '{"threshold":1, "keys":[{"key":"USER_ACTIVE_PUBLIC_KEY_HERE", "weight":1}], "accounts": [{"permission":{"actor":"test","permission":"eosio.code"},"weight":1}]}' owner -p user
Thanks, it works
Getting same error while trying to create account using eosjs & localnet. https://eosio.stackexchange.com/questions/2422/error-in-eosjs-account-creation-on-localnet
I've deployed
eosio.token
contract at local testnet and created new token calledTEST
via callingcleos push action eosio.token create '["user", "100000000.0000 TEST", 0, 0, 0]' -p eosio.token
. After that I've issued some tokens touser
account.Transferring tokens via inline call works perfectly, but when I try to transfer tokens via
action
I getMy inline call:
My function for transferring tokens:
My call for this function:
cleos push action test act '["user", "other", "10000.0000 TEST"]' -p user