eos icon indicating copy to clipboard operation
eos copied to clipboard

cleos get table returns empty rows for eosio.token contract accounts

Open brightermatter opened this issue 8 years ago • 5 comments

Successfully deployed the eosio.token smart contract and transferred the currency between 2 accounts (tester, user). The overdrawn balance checks are triggered and the transactions run smoothly. However cleos get table returns empty rows for the accounts involved:

~/eos/build/contracts$ cleos get table eosio.token user account { "rows": [], "more": false }

~/eos/build/contracts$ cleos get table eosio.token tester account { "rows": [], "more": false }

The build is the latest master branch.

brightermatter avatar Apr 08 '18 10:04 brightermatter

I also get empty rows from eosio.token by table. but if you want to get the balance of account, I think you can use "cleos get currency balance eosio.token account symbol".

red-butterfly avatar Apr 09 '18 06:04 red-butterfly

cleos get currency balance eosio.token account EOS => will return EMPTY

brain-hu avatar Apr 09 '18 06:04 brain-hu

It works for me. You need need to replace the name of the account in the command i.e. :

cleos get currency balance eosio.token tester EOS

brightermatter avatar Apr 09 '18 06:04 brightermatter

@brightermatter got it, thanks

brain-hu avatar Apr 10 '18 00:04 brain-hu

@brightermatter the table name is accounts (ABI file is wrong)

cleos get table eosio.token user accounts

This is being addressed in #2291

elmato avatar Apr 10 '18 13:04 elmato