@@ -40,16 +40,7 @@ use crate::{
4040 inventory_manager:: { InventoryManager , InventoryManagerError } ,
4141 json_rpc:: Subscriptions ,
4242 messages:: {
43- AddCandidates , AddPeers , AddTransaction , AuthorizeStake , BuildDrt , BuildStake ,
44- BuildStakeParams , BuildStakeResponse , BuildUnstake , BuildUnstakeParams , BuildVtt ,
45- ClearPeers , DropAllPeers , EstimatePriority , GetBalance , GetBalance2 , GetBalance2Limits ,
46- GetBalanceTarget , GetBlocksEpochRange , GetConsolidatedPeers , GetDataRequestInfo ,
47- GetEpoch , GetHighestCheckpointBeacon , GetItemBlock , GetItemSuperblock ,
48- GetItemTransaction , GetKnownPeers , GetMemoryTransaction , GetMempool , GetNodeStats ,
49- GetProtocolInfo , GetReputation , GetSignalingInfo , GetState , GetSupplyInfo ,
50- GetSupplyInfo2 , GetUtxoInfo , InitializePeers , IsConfirmedBlock , MagicEither ,
51- QueryStakes , QueryStakingPowers , Rewind , SnapshotExport , SnapshotImport ,
52- StakeAuthorization ,
43+ AddCandidates , AddPeers , AddTransaction , AuthorizeStake , BuildDrt , BuildStake , BuildStakeParams , BuildStakeResponse , BuildUnstake , BuildUnstakeParams , BuildVtt , ClearPeers , DropAllPeers , EstimatePriority , GetBalance , GetBalance2 , GetBalance2Limits , GetBalanceTarget , GetBlocksEpochRange , GetConsolidatedPeers , GetDataRequestInfo , GetEpoch , GetHighestCheckpointBeacon , GetItemBlock , GetItemSuperblock , GetItemTransaction , GetKnownPeers , GetMemoryTransaction , GetMempool , GetNodeStats , GetProtocolInfo , GetReputation , GetSignalingInfo , GetState , GetSupplyInfo , GetSupplyInfo2 , GetUtxoInfo , InitializePeers , IsConfirmedBlock , MagicEither , QueryStakes , QueryStakingPowers , Rewind , SnapshotExport , SnapshotImport , StakeAuthorization
5344 } ,
5445 peers_manager:: PeersManager ,
5546 sessions_manager:: SessionsManager ,
@@ -1459,7 +1450,7 @@ pub async fn get_balance(params: Params, sensitive_methods_enabled: bool) -> Jso
14591450 // Handle parameters as an array with a first obligatory PublicKeyHash field plus an optional bool field
14601451 if let Params :: Array ( params) = params {
14611452 if let Some ( Value :: String ( target_param) ) = params. first ( ) {
1462- target = GetBalanceTarget :: from_str ( target_param) . map_err ( internal_error) ?;
1453+ target = GetBalanceTarget :: from_str ( & target_param) . map_err ( internal_error) ?;
14631454 } else {
14641455 return Err ( Error :: invalid_params (
14651456 "First argument of `get_balance` must have type `PublicKeyHash`" ,
0 commit comments