Skip to content

Commit

Permalink
Merge pull request themuseblockchain#2 from elmato/named-api-call
Browse files Browse the repository at this point in the history
Replace the call to get_api_by_name
  • Loading branch information
vikramrajkumar authored Jan 31, 2017
2 parents e1d6182 + dd36202 commit e323862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/rpc/http_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ http_api_connection::http_api_connection()
api_id_type api_id;
if( args[0].is_string() )
{
variants subargs;
subargs.push_back( args[0] );
variant subresult = this->receive_call( 1, "get_api_by_name", subargs );
variant subresult = this->receive_call( 1, args[0].as_string() );
api_id = subresult.as_uint64();
}
else
Expand Down
4 changes: 1 addition & 3 deletions src/rpc/websocket_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ websocket_api_connection::websocket_api_connection( fc::http::websocket_connecti
api_id_type api_id;
if( args[0].is_string() )
{
variants subargs;
subargs.push_back( args[0] );
variant subresult = this->receive_call( 1, "get_api_by_name", subargs );
variant subresult = this->receive_call( 1, args[0].as_string() );
api_id = subresult.as_uint64();
}
else
Expand Down

0 comments on commit e323862

Please sign in to comment.