Assert Exception (10) !action_type.empty(): Unknown action create in contract eosio.token

This is my terminal now:

gavin@dreambidio:~/eos/build/contracts/eosio.token$ cleos set contract eosio.token /home/gavin/eos/build/contracts/eosio.token eosio.token.wasm eosio.token.abi Reading WASM from /home/gavin/eos/build/contracts/eosio.token/eosio.token.wasm... Publishing contract... executed transaction: 2a863a68b4c9cae3f91908bbb27db701d22e69844986dc1e8aafc5d21a47a27d 7944 bytes 1113 us # eosio <= eosio::setcode {"account":"eosio.token","vmtype":0,"vmversion":0,"code":"0061736d01000000017e1560037f7e7f0060057f7e... # eosio <= eosio::setabi {"account":"eosio.token","abi":"0e656f73696f3a3a6162692f312e310000000000000000"} warn 2018-12-06T03:43:55.505 thread-0 main.cpp:482
print_resuwarning: transaction executed locally, but may not be confirmed by the network yet

gavin@dreambidio:~/eos/build/contracts/eosio.token$ cleos push action eosio.token create '{"issuer":"eosio", "maximum_supply":"1000000000.0000 SYS"}' -p eosio.token error 2018-12-06T03:45:47.220 thread-0 main.cpp:3151 main
] Failed with error: Assert Exception (10) !action_type.empty(): Unknown action create in contract eosio.token

gavin@dreambidio:~/eos/build/contracts/eosio.token$ cd gavin@dreambidio:~$ cd eos gavin@dreambidio:~/eos$ cd build gavin@dreambidio:~/eos/build$ cleos push action eosio.token create '["eosio","1000000000.0000 EOS",0,0,0]' -p eosio.token error 2018-12-06T03:51:26.156 thread-0 main.cpp:3151 main
] Failed with error: Assert Exception (10) !action_type.empty(): Unknown action create in contract eosio.token

gavin@dreambidio:~/eos/build$ cleos push action eosio.token issue '["eosio","1000000000.0000 EOS",0,0,0]' -p eosio.token error 2018-12-06T03:51:56.999 thread-0 main.cpp:3151 main
] Failed with error: Assert Exception (10) !action_type.empty(): Unknown action issue in contract eosio.token

gavin@dreambidio:~/eos/build$ cleos push action eosio.token create '{"issuer":"eosio", "maximum_supply":"1000000000.0000 SYS"}' -p eosio.token@active error 2018-12-06T03:57:54.769 thread-0 main.cpp:3151 main ] Failed with error: Assert Exception (10) !action_type.empty(): Unknown action create in contract eosio.token

gavin@dreambidio:~/eos/build$ cleos get code eosio code hash: 0000000000000000000000000000000000000000000000000000000000000000 gavin@dreambidio:~/eos/build$ cleos get code eosio.token code hash: 641f336aa1d08526201599c3c0ddb7a646e5ac8f9fd2493f56414d0422a0f957 gavin@dreambidio:~/eos/build$

  • it says unknown action in the contract means your abi file might not generated correctly! – Mr.Y Dec 6 at 6:32
  • check your eosio.token's abi and wasm file. And if they are not correctly configure again set the eosio.token contract and also provide the permission of eosio.token to your contract. – Nirdesh Kumar Choudhary Dec 6 at 7:33
  • Did your eosio.token contains this "actions": [{ "name": "transfer", "type": "transfer", "ricardian_contract": "" },{ "name": "issue", "type": "issue", "ricardian_contract": "" }, { "name": "create", "type": "create", "ricardian_contract": "" } – Nirdesh Kumar Choudhary Dec 6 at 7:35
  • I'm new at this so please have patience with me if I'm making a silly error :) I built EOS from source with an autoscript and also eosio.cdt. I have noticed that there are multiple files for contracts in EOS that appear to have the same or similar contracts, maybe I should be using a different one? The eosio.token file I am using is in eos/build/contracts/eosio.token and there was no need to generate the wasm files with abigen since it was already there. I went into the directory and found the hpp file. – gelvandorf Dec 6 at 18:55
  • Thank you for the help everyone. Nirdesh you were correct. The abi file was blank for some reason. – gelvandorf Dec 7 at 2:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.