Skip to content

Commit

Permalink
GH-677 Constrain scope
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Feb 7, 2023
1 parent eb0d3dc commit ed2e91d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/chain_plugin/chain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2473,8 +2473,7 @@ read_only::get_account_results read_only::get_account( const get_account_params&

static fc::variant action_abi_to_variant( const account_object* code_account, type_name action_type ) {
fc::variant v;
abi_def abi;
if( abi_serializer::to_abi(code_account->abi, abi) ) {
if( abi_def abi; abi_serializer::to_abi(code_account->abi, abi) ) {
auto it = std::find_if(abi.structs.begin(), abi.structs.end(), [&](auto& x){return x.name == action_type;});
if( it != abi.structs.end() )
to_variant( it->fields, v );
Expand Down

0 comments on commit ed2e91d

Please sign in to comment.