提交 83d9869f 编写于 作者: W Wang Zhi

add some extra error information

上级 8e8baf23
......@@ -72,14 +72,14 @@ namespace eosio {
asset token::get_supply( symbol_name sym )const
{
stats statstable( _self, sym );
const auto& st = statstable.get( sym );
const auto& st = statstable.get( sym , "get_supply : can not find symbol");
return st.supply;
}
asset token::get_balance( account_name owner, symbol_name sym )const
{
accounts accountstable( _self, owner );
const auto& ac = accountstable.get( sym );
const auto& ac = accountstable.get( sym , "get_balance : can not find asset symbol");
return ac.balance;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册