Closed DenisCarriere closed 5 months ago
Extend eosio.token contract with an additional static method get_max_supply to easily retrieve max supply of a token.
eosio.token
get_max_supply
static asset get_max_supply( const name& token_contract_account, const symbol_code& sym_code ) { stats statstable( token_contract_account, sym_code.raw() ); const auto& st = statstable.get( sym_code.raw(), "invalid supply symbol code" ); return st.max_supply; }
eosio.token::get_supply
Note: changes should be pushed to Antelope Reference contracts https://github.com/AntelopeIO/reference-contracts
get_issuer
Implemented via: https://github.com/AntelopeIO/reference-contracts/commit/bde73bf35ade809ce6cf796e2e07cf19edc7110e
Purpose
Extend
eosio.token
contract with an additional static methodget_max_supply
to easily retrieve max supply of a token.get_max_supply
STATICReferences
eosio.token::get_supply
additional scope
get_issuer