Skip to content

Commit 0c56bcd

Browse files
committed
Rename callQueryStakeAddressInfoCmd to getQueryStakeAddressInfo because it is not a command function
1 parent 45e8335 commit 0c56bcd

File tree

1 file changed

+5
-5
lines changed
  • cardano-cli/src/Cardano/CLI/EraBased/Query

1 file changed

+5
-5
lines changed

cardano-cli/src/Cardano/CLI/EraBased/Query/Run.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -979,11 +979,11 @@ runQueryStakeAddressInfoCmd
979979
& onLeft (left . QueryCmdUnsupportedNtcVersion)
980980
sbe <- requireShelleyBasedEra era & onNothing (left QueryCmdByronEra)
981981

982-
said <- callQueryStakeAddressInfoCmd commons addr
982+
said <- getQueryStakeAddressInfo commons addr
983983

984984
writeStakeAddressInfo sbe said outputFormat mOutFile
985985

986-
-- | Container for data returned by 'callQueryStakeAddressInfoCmd' where:
986+
-- | Container for data returned by 'getQueryStakeAddressInfo' where:
987987
data StakeAddressInfoData = StakeAddressInfoData
988988
{ rewards :: DelegationsAndRewards
989989
-- ^ Rewards: map of stake addresses to pool ID and rewards balance.
@@ -996,11 +996,11 @@ data StakeAddressInfoData = StakeAddressInfoData
996996
-- ^ Delegatees: map of stake addresses and their vote delegation preference.
997997
}
998998

999-
callQueryStakeAddressInfoCmd
999+
getQueryStakeAddressInfo
10001000
:: Cmd.QueryCommons
10011001
-> StakeAddress
10021002
-> ExceptT QueryCmdError IO StakeAddressInfoData
1003-
callQueryStakeAddressInfoCmd
1003+
getQueryStakeAddressInfo
10041004
Cmd.QueryCommons
10051005
{ Cmd.nodeConnInfo = nodeConnInfo@LocalNodeConnectInfo{localNodeNetworkId = networkId}
10061006
, Cmd.target
@@ -1836,7 +1836,7 @@ runQuerySPOStakeDistribution
18361836
Map.fromList . concat
18371837
<$> traverse
18381838
( \stakeAddr -> do
1839-
info <- callQueryStakeAddressInfoCmd commons stakeAddr
1839+
info <- getQueryStakeAddressInfo commons stakeAddr
18401840
return $
18411841
[ (spo, delegatee)
18421842
| (Just spo, delegatee) <-

0 commit comments

Comments
 (0)