Skip to content

Commit

Permalink
#3593: Fix prototype for list_rc_delegations to a vector of account n…
Browse files Browse the repository at this point in the history
…ame types
  • Loading branch information
sgerbino committed Feb 28, 2020
1 parent ba90b8c commit b6aff0e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libraries/plugins/apis/condenser_api/condenser_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ namespace detail
FC_ASSERT( _rc_api, "rc_api_plugin not enabled." );
rc::list_rc_delegations_args a;
a.start = args[0].as< account_name_type >();
a.start = args[0].as< vector< fc::variant > >();
a.limit = args[1].as< uint32_t >();
a.order = args[2].as< rc::sort_order_type >();
Expand Down
2 changes: 1 addition & 1 deletion libraries/wallet/include/steem/wallet/remote_node_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct remote_node_api
vector< rc::rc_delegation_pool_api_object > find_rc_delegation_pools( vector< account_name_type > );
vector< rc::rc_delegation_pool_api_object > list_rc_delegation_pools( account_name_type, uint32_t, rc::sort_order_type );
vector< rc::rc_indel_edge_api_object > find_rc_delegations( account_name_type );
vector< rc::rc_indel_edge_api_object > list_rc_delegations( account_name_type, uint32_t, rc::sort_order_type );
vector< rc::rc_indel_edge_api_object > list_rc_delegations( vector< account_name_type >, uint32_t, rc::sort_order_type );
};

} }
Expand Down
2 changes: 1 addition & 1 deletion libraries/wallet/include/steem/wallet/wallet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ class wallet_api
* @param order The sort order
*/
vector< rc::rc_indel_edge_api_object > list_rc_delegations(
account_name_type account,
vector< account_name_type > account,
uint32_t limit,
rc::sort_order_type order );

Expand Down
2 changes: 1 addition & 1 deletion libraries/wallet/remote_node_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ vector< rc::rc_indel_edge_api_object > remote_node_api::find_rc_delegations( acc
FC_ASSERT( false );
}

vector< rc::rc_indel_edge_api_object > remote_node_api::list_rc_delegations( account_name_type, uint32_t, rc::sort_order_type )
vector< rc::rc_indel_edge_api_object > remote_node_api::list_rc_delegations( vector< account_name_type >, uint32_t, rc::sort_order_type )
{
FC_ASSERT( false );
}
Expand Down
4 changes: 2 additions & 2 deletions libraries/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2913,11 +2913,11 @@ condenser_api::legacy_signed_transaction wallet_api::follow( string follower, st
}

vector< rc::rc_indel_edge_api_object > wallet_api::list_rc_delegations(
account_name_type account,
vector< account_name_type > accounts,
uint32_t limit,
rc::sort_order_type order )
{
return my->_remote_api->list_rc_delegations( account, limit, order );
return my->_remote_api->list_rc_delegations( accounts, limit, order );
}

} } // steem::wallet

0 comments on commit b6aff0e

Please sign in to comment.