diff --git a/modules/apps/transfer/client/cli/query.go b/modules/apps/transfer/client/cli/query.go index e627aa14199c..fd958ac65c22 100644 --- a/modules/apps/transfer/client/cli/query.go +++ b/modules/apps/transfer/client/cli/query.go @@ -169,7 +169,7 @@ func GetCmdQueryDenomHash() *cobra.Command { } // GetCmdQueryDenomHash defines the command to query a denomination hash from a given trace. -func GetCmdQueryIBCTokenOut() *cobra.Command { +func GetCmdQueryTotalEscrowForDenom() *cobra.Command { cmd := &cobra.Command{ Use: "token-out [denom]", Short: "Query the total source chain tokens that has been ibc'd out", diff --git a/modules/apps/transfer/keeper/keeper.go b/modules/apps/transfer/keeper/keeper.go index bcc9eaae6eb7..26c98f38ef6a 100644 --- a/modules/apps/transfer/keeper/keeper.go +++ b/modules/apps/transfer/keeper/keeper.go @@ -155,7 +155,7 @@ func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability // GetIBCOutDenomAmount gets the total source chain tokens that has been IBC'd out. func (k Keeper) GetIBCOutDenomAmount(ctx sdk.Context, denom string) sdk.Int { store := ctx.KVStore(k.storeKey) - bz := store.Get(types.GetIBCOutDenom(denom)) + bz := store.Get(types.GetTotalEscrowForDenomKey(denom)) if bz == nil { return sdk.NewInt(0) } @@ -174,5 +174,5 @@ func (k Keeper) SetIBCOutDenomAmount(ctx sdk.Context, denom string, amount sdk.I if err != nil { panic(err) } - store.Set(types.GetIBCOutDenom(denom), bz) + store.Set(types.GetTotalEscrowForDenomKey(denom), bz) } diff --git a/modules/apps/transfer/types/keys.go b/modules/apps/transfer/types/keys.go index 5554869e3bc7..f389ecb850fb 100644 --- a/modules/apps/transfer/types/keys.go +++ b/modules/apps/transfer/types/keys.go @@ -55,6 +55,6 @@ func GetEscrowAddress(portID, channelID string) sdk.AccAddress { } // GetIBCOutDenom holds the total ibcout for native tokens per transfer. -func GetIBCOutDenom(denom string) []byte { +func GetTotalEscrowForDenomKey(denom string) []byte { return []byte(fmt.Sprintf("total_native_ibc_out/%s", denom)) }