Merge pull request #2 from elmato/named-api-call

Replace the call to get_api_by_name
This commit is contained in:
Vikram Rajkumar 2017-01-30 18:11:55 -06:00 committed by GitHub
commit e3238628fc
2 changed files with 2 additions and 6 deletions

View file

@ -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

View file

@ -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