eos icon indicating copy to clipboard operation
eos copied to clipboard

Error 3030000: transaction validation exception,can anyone help?

Open okluoquan opened this issue 8 years ago • 2 comments

./cleos push action currency issue '{"to":"currency","quantity":"1000.0000 CUR","memo":""}' --permission currency@active

1481906ms thread-0 main.cpp:964 operator() ] Converting argument to binary...

Error 3030000: transaction validation exception

Ensure that your transaction satisfy the contract's constraint!

Error Details: condition: assertion failed: unable to find key Request Path: localhost:8888/v1/chain/push_transaction Request Post Data: {"signatures":["EOSK8eaRKhUnXH1HfdHM8GMXmKkUZwHN9EFgELsDq5a1T99nMrfyBfQZrvFaTfrDFtrUPc1u12eYf6zaxjTvZiEpbcsPnHAkp"],"compression":"none","data":"874ebc5a000009090c3a17400000000000010000001e4d75af460000000000a53176010000001e4d75af4600000000a8ed3232190000001e4d75af468096980000000000044355520000000000"}

master branch node local testnet anything wrong?

okluoquan avatar Mar 29 '18 02:03 okluoquan

1、 ./cleos wallet create Save password to use in the future to unlock this wallet. Without password imported keys will not be retrievable. "PW5JnJbVFxQAoeZsQy3N4LjXCLYGgmj1Tkrpwc5AufRzsjcwSbwHz"

2、 ./cleos wallet import 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3

3、 cd ~/eos/build/programs/cleos/ ./cleos create key # owner_key Private key: 5K5GKArfUZRV1LXqWpjxd89hNtzUaxA5gSKJVk8GUe4BBr67Xt5 Public key: EOS7zbJUQNSQJnti91nGjVgEP4FCmnFqmMrUGPHk3qXp9pqsKS2p1

./cleos create key # active_key Private key: 5JECYE8m7mnmEqJRQbSqbox1bJiXPXotpzWNSfsNZT6b3juYnzc Public key: EOS6FQ5bpk8PGtyMcuZmkHtYtEmwbyNPnM87RUvGLBGJS7UAJq4hS

4、 ./cleos create account eosio currency EOS7zbJUQNSQJnti91nGjVgEP4FCmnFqmMrUGPHk3qXp9pqsKS2p1 EOS6FQ5bpk8PGtyMcuZmkHtYtEmwbyNPnM87RUvGLBGJS7UAJq4hS

5、 ./cleos wallet import 5JECYE8m7mnmEqJRQbSqbox1bJiXPXotpzWNSfsNZT6b3juYnzc

6、 ./cleos set contract currency ../../contracts/currency/currency.wast ../../contracts/currency/currency.abi

7、 ./cleos push action currency issue '{"to":"currency","quantity":"1000.0000 CUR","memo":""}' --permission currency@active

does anything wrong?

okluoquan avatar Mar 29 '18 02:03 okluoquan

I have resolve it.

before ./cleos push action currency issue run:

./cleos push action currency create '{"issuer":"currency", "maximum_supply": "1000000000.0000 CUR", "can_freeze": 1, "can_recall": 1, "can_whitelist": 1}' -p currency@active

okluoquan avatar Mar 29 '18 08:03 okluoquan