eos icon indicating copy to clipboard operation
eos copied to clipboard

I push the dice contract show error 3090003...

Open boy-good opened this issue 8 years ago • 6 comments

Exception Details: 3090003 unsatisfied_authorization: Provided keys, permissions, and delays do not satisfy declared authorizations transaction declares authority '{"actor":"alice","permission":"active"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [{"actor":"demo","permission":"eosio.code"}], provided keys [], and a delay max limit of 3888000000 ms {"auth":{"actor":"alice","permission":"active"},"provided_delay":0,"provided_permissions":[{"actor":"demo","permission":"eosio.code"}],"provided_keys":[],"delay_max_limit_ms":3888000000} thread-0 authorization_manager.cpp:413 check_authorization pending console output: {"console":""}

like this.

boy-good avatar Oct 16 '18 07:10 boy-good

You should set eosio.code permission for your contract Use following commands:

cleos set account permission contract_account active '{"threshold": 1,"keys": [{"key": "publickey","weight": 1}],"accounts": [{"permission":{"actor":"contract_account","permission":"eosio.code"},"weight":1}]}' owner -p contract_account

quocle108 avatar Oct 16 '18 07:10 quocle108

You should set eosio.code permission for your contract Use following commands:

cleos set account permission contract_account active '{"threshold": 1,"keys": [{"key": "publickey","weight": 1}],"accounts": [{"permission":{"actor":"contract_account","permission":"eosio.code"},"weight":1}]}' owner -p contract_account

Thank you very much! but now a new error show:

Exception Details: 3050003 eosio_assert_message_exception: eosio_assert_message assertion failure assertion failure with message: attempt to add asset with different symbol {"s":"attempt to add asset with different symbol"} thread-0 wasm_interface.cpp:930 eosio_assert pending console output: {"console":""}

boy-good avatar Oct 16 '18 07:10 boy-good

It seem the quantity incorrect symbol name. Could you provide your command action?

quocle108 avatar Oct 16 '18 07:10 quocle108

It seem the quantity incorrect symbol name. Could you provide your command action?

cleos push action demo deposit '[ "alice", "10.0000 EOS" ]' -p alice

boy-good avatar Oct 16 '18 07:10 boy-good

local nodeos doesnt support EOS use SYS instead if you havent created SYS then create and issue it first using eosio.token contract

kstvigilante avatar Oct 16 '18 12:10 kstvigilante

Closing this since dice is being removed by #6023

heifner avatar Oct 16 '18 19:10 heifner