提交 5ccf7ca2 编写于 作者: J Jonathan Giszczak

Explicitly throw away get_table_type return value for code clarity

get_table_type() called in order to generate more readable errors in the
case the 'accounts' table does not exist when querying currency
balances.
上级 c895beab
......@@ -1248,7 +1248,7 @@ read_only::get_table_by_scope_result read_only::get_table_by_scope( const read_o
vector<asset> read_only::get_currency_balance( const read_only::get_currency_balance_params& p )const {
const abi_def abi = eosio::chain_apis::get_abi( db, p.code );
auto table_type = get_table_type( abi, "accounts" );
(void)get_table_type( abi, "accounts" );
vector<asset> results;
walk_key_value_table(p.code, p.account, N(accounts), [&](const key_value_object& obj){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册