From b6aff0e4cf9b2fd24103ca2d5f3c7739b19b05fc Mon Sep 17 00:00:00 2001 From: Steve Gerbino Date: Thu, 27 Feb 2020 19:36:43 -0500 Subject: [PATCH] #3593: Fix prototype for list_rc_delegations to a vector of account name types --- libraries/plugins/apis/condenser_api/condenser_api.cpp | 2 +- libraries/wallet/include/steem/wallet/remote_node_api.hpp | 2 +- libraries/wallet/include/steem/wallet/wallet.hpp | 2 +- libraries/wallet/remote_node_api.cpp | 2 +- libraries/wallet/wallet.cpp | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/plugins/apis/condenser_api/condenser_api.cpp b/libraries/plugins/apis/condenser_api/condenser_api.cpp index 191beede2e..b61a090e50 100644 --- a/libraries/plugins/apis/condenser_api/condenser_api.cpp +++ b/libraries/plugins/apis/condenser_api/condenser_api.cpp @@ -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 >(); diff --git a/libraries/wallet/include/steem/wallet/remote_node_api.hpp b/libraries/wallet/include/steem/wallet/remote_node_api.hpp index 4f9cfbfc13..87e3994b19 100644 --- a/libraries/wallet/include/steem/wallet/remote_node_api.hpp +++ b/libraries/wallet/include/steem/wallet/remote_node_api.hpp @@ -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 ); }; } } diff --git a/libraries/wallet/include/steem/wallet/wallet.hpp b/libraries/wallet/include/steem/wallet/wallet.hpp index 9d4604b2ff..278f6663c6 100644 --- a/libraries/wallet/include/steem/wallet/wallet.hpp +++ b/libraries/wallet/include/steem/wallet/wallet.hpp @@ -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 ); diff --git a/libraries/wallet/remote_node_api.cpp b/libraries/wallet/remote_node_api.cpp index 1452e534c0..724fbab088 100644 --- a/libraries/wallet/remote_node_api.cpp +++ b/libraries/wallet/remote_node_api.cpp @@ -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 ); } diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 11653de2cd..04b416f5ec 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -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