We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17698a5 commit f78c121Copy full SHA for f78c121
plugins/chain_plugin/chain_plugin.cpp
@@ -2470,6 +2470,15 @@ read_only::get_abi_results read_only::get_abi( const get_abi_params& params )con
2470
const auto& accnt = d.get<account_object,by_name>( params.account_name );
2471
2472
abi_def abi;
2473
+
2474
+ if (accnt.abi.size() == 0) {
2475
+ const auto& accnt_systokenabi = d.get<account_object,by_name>( infrablockchain::chain::infrablockchain_standard_token_interface_abi_account_name );
2476
+ if( abi_serializer::to_abi(accnt_systokenabi.abi, abi) ) {
2477
+ result.abi = std::move(abi);
2478
+ }
2479
+ return result;
2480
2481
2482
if( abi_serializer::to_abi(accnt.abi, abi) ) {
2483
result.abi = std::move(abi);
2484
}
0 commit comments