EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

when use contracts/eosin.token to issue token, can not query each account's balance. #6441

Closed readygo586 closed 5 years ago

readygo586 commented 5 years ago

After parsing the eosin.token.abi, I found there are no accounts and stats tables, which are different from https://github.com/EOSIO/eos/tree/master/contracts/eosio.token/eosio.token.abi. Is there any missing when I generate the abi file?
image

jgiszczak commented 5 years ago

Which tool did you use to generate the abi file? You may need to use the most recent release of eosio.cdt.

readygo586 commented 5 years ago

I update to the latest eos1.5.0 and cdt 1.4.1, and follow the instructions in https://developers.eos.io/eosio-home/docs/your-first-contract to create a contracts/nyhello/myhello.cpp.

image

The myhello.abi is EMPTY, looks like bleow.

image image

if I change the class name from hello to myhello, then it can generate a valid .abi file, may some improvement are necessary.

taokayan commented 5 years ago

try CONTRACT myhello : public eosio::contract {

If you still need help and wish to discuss further, please post it in https://eosio.stackexchange.com. To keep things organized, Github issues are intended for bug reporting and feature tracking, and Stack Exchange is the right place for any technical support discussions. Thanks!