Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Refactored some methods to save encapsulation. #161
Browse files Browse the repository at this point in the history
  • Loading branch information
AKorpusenko committed Aug 26, 2017
1 parent 6a4c650 commit a0afe24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions programs/cli_wallet/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ int main(int argc, char **argv) {
const string& method = args[0].get_string();

auto result = wallet_cli->receive_call( 0, method, fc::variants( args.begin() + 1,args.end() ) );
auto itr = wallet_cli->_result_formatters.find( method );
if( itr == wallet_cli->_result_formatters.end() )

auto itr = wallet_cli->find_method( method );
if( itr == wallet_cli->get_result_formatters_end() )
{
commands_output.push_back(std::make_pair(command.first, fc::json::to_pretty_string( result )));
}
Expand Down

0 comments on commit a0afe24

Please sign in to comment.