eos icon indicating copy to clipboard operation
eos copied to clipboard

After I downloaded the EOS code today,I can't even run the Hello World contract

Open Phoenix117 opened this issue 8 years ago • 11 comments

`root@bc154:/opt/eos/build# ./programs/cleos/cleos push action eosio hi ["eosio"] -p eosio Error 3050002: Invalid Action Arguments Ensure that your arguments follow the contract abi! You can check the contract's abi by using 'cleos get code' command.

Error Details: '["eosio"]' is invalid args for action 'hi' code 'eosio'. expected '[{"name":"user","type":"account_name"}]' itr != structs.end(): Unknown struct account_name`

Phoenix117 avatar May 21 '18 10:05 Phoenix117

./programs/cleos/cleos push action eosio hi '[{"name":"eosio","type":"account_name"}]' -p eosio

Let me know if it worked.

ghost avatar May 21 '18 13:05 ghost

@enriquejr99 It didn't work. The same error details.

Phoenix117 avatar May 22 '18 01:05 Phoenix117

@enriquejr99 It went well after I switched to Dawn 4.0.

Phoenix117 avatar May 22 '18 03:05 Phoenix117

Yes, I have the same error. After the Dawn 4.0, the action con't analyse the account_name; In Dawn 4.0 ,the error is "Couldn't parse uint64_t", as i know

red-butterfly avatar May 22 '18 09:05 red-butterfly

You should change account_name to name.

andriyha avatar May 22 '18 12:05 andriyha

recently there is a change in abi which needs to include below if containing account_name type: "version": "eosio::abi/1.0", "types": [{ "new_type_name": "account_name", "type": "name" }],

giniz avatar May 23 '18 09:05 giniz

@red-butterfly I don't have the same error when I use the Dawn 4.0. Later I will try "name" type instead of "account_name" type. I will tell you the result.

Phoenix117 avatar May 25 '18 05:05 Phoenix117

@andriyha @giniz I know this method, but if you change the type to name ; When you use get table, you will find it doesn't work, or error

red-butterfly avatar May 25 '18 08:05 red-butterfly

@red-butterfly Dawn-v4.2.0 doesn't have these problem.I have tried.

Phoenix117 avatar May 29 '18 05:05 Phoenix117

Can you try if the latest version works?

taokayan avatar Jun 21 '18 01:06 taokayan

We haven't received any update for this. If you still have the problem and wish to discuss further, please post it in https://eosio.stackexchange.com

taokayan avatar Oct 30 '18 06:10 taokayan