eos icon indicating copy to clipboard operation
eos copied to clipboard

currency - get_supply - error

Open filipniziol opened this issue 8 years ago • 3 comments

Inside the contract I run:

currency(N(eosio.token)).get_supply(symbol_type(S(4, SYS)).name());

Cannot make it work:

Error 3050003: eosio_assert_message assertion failure Error Details: assertion failure with message: unable to find key

filipniziol avatar Jun 03 '18 19:06 filipniziol

@filipniziol do you have token contract installed on to eosio.token account and SYS token created?

moskvanaft avatar Jun 05 '18 15:06 moskvanaft

Yes. What started to work was replacing reference to currency.hpp => eosio.token.hpp and making get_supply and get_balance public not private It seems not to work in that shape. I have made pull request for this: https://github.com/EOSIO/eos/pull/3832

filipniziol avatar Jun 05 '18 15:06 filipniziol

Resolved by #3832.

arhag avatar Jun 05 '18 18:06 arhag