From ed2e91d68d92cc872af0934f4e2d98674f4ed0e5 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Tue, 7 Feb 2023 13:23:23 -0600 Subject: [PATCH] GH-677 Constrain scope --- plugins/chain_plugin/chain_plugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/chain_plugin/chain_plugin.cpp b/plugins/chain_plugin/chain_plugin.cpp index 66327693e5..882d54f54f 100644 --- a/plugins/chain_plugin/chain_plugin.cpp +++ b/plugins/chain_plugin/chain_plugin.cpp @@ -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 );