EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 463 forks source link

When my contract uses EOS token, it will appear bug. #108

Closed xiangxn closed 6 years ago

xiangxn commented 6 years ago

error:Table stat is not specified in the ABI

assetCache.lookupAsync(assetSymbol.symbol, currentAccount) Where "currentAccount" may not be eosio.

jcalfee commented 6 years ago

Symbols are unique by contract not by blockchain. Try using the extended_asset or extended_symbol types in your contract. This means your going to pass values like 1 EOS@eosio.token or EOS@eosio.token instead of just EOS.

Use the latest eosjs release, these have been under development.

jcalfee commented 6 years ago

Asset and Symbol defaults to eosio.token now.. Let me know if you still see an issue.