I have tested dice contrace by following procedure:
1 cleos wallet unlock
2 cleos wallet import private_key
3 cleos create account eosio dice public_key public_key
4 cleos create account eosio user public_key public_key
5 cleos set contract dice ~/EOS/build/contracts/dice -p dice
6 cleos push action dice deposit '["user", "1.0000 EOS"]' -p user
and in step6, i got following error:
Error 3030002: signatures do not satisfy declared authorizations
Ensure that you have the related private keys inside your wallet and you wallet is unlocked.
Error Details:
transaction declares authority '{"actor":"user","permission":"active"}', but does not have signatures for it.
I am wondering why i got signature error when i have already imported private key.
I have tested dice contrace by following procedure: 1 cleos wallet unlock 2 cleos wallet import private_key 3 cleos create account eosio dice public_key public_key 4 cleos create account eosio user public_key public_key 5 cleos set contract dice ~/EOS/build/contracts/dice -p dice 6 cleos push action dice deposit '["user", "1.0000 EOS"]' -p user
and in step6, i got following error: Error 3030002: signatures do not satisfy declared authorizations Ensure that you have the related private keys inside your wallet and you wallet is unlocked. Error Details: transaction declares authority '{"actor":"user","permission":"active"}', but does not have signatures for it.
I am wondering why i got signature error when i have already imported private key.