From e8d356cd7b38a84766803060ea3b9a1006b53370 Mon Sep 17 00:00:00 2001 From: Tyler <48813565+technicallyty@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:42:04 -0800 Subject: [PATCH] linter --- modules/apps/29-fee/keeper/keeper.go | 12 ++++++------ modules/core/keeper/keeper_test.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/apps/29-fee/keeper/keeper.go b/modules/apps/29-fee/keeper/keeper.go index e54e08ce933..282ebb7eb76 100644 --- a/modules/apps/29-fee/keeper/keeper.go +++ b/modules/apps/29-fee/keeper/keeper.go @@ -223,17 +223,17 @@ func (k Keeper) GetAllPayees(ctx context.Context) []types.RegisteredPayee { // SetCounterpartyPayeeAddress maps the destination chain counterparty payee address to the source relayer address // The receiving chain must store the mapping from: address -> counterpartyPayeeAddress for the given channel -func (k Keeper) SetCounterpartyPayeeAddress(ctx context.Context, address, counterpartyAddress, channelID string) { +func (k Keeper) SetCounterpartyPayeeAddress(ctx context.Context, addr, counterpartyAddress, channelID string) { store := k.KVStoreService.OpenKVStore(ctx) - if err := store.Set(types.KeyCounterpartyPayee(address, channelID), []byte(counterpartyAddress)); err != nil { + if err := store.Set(types.KeyCounterpartyPayee(addr, channelID), []byte(counterpartyAddress)); err != nil { panic(err) } } // GetCounterpartyPayeeAddress gets the counterparty payee address given a destination relayer address -func (k Keeper) GetCounterpartyPayeeAddress(ctx context.Context, address, channelID string) (string, bool) { +func (k Keeper) GetCounterpartyPayeeAddress(ctx context.Context, relayerAddr, channelID string) (string, bool) { store := k.KVStoreService.OpenKVStore(ctx) - key := types.KeyCounterpartyPayee(address, channelID) + key := types.KeyCounterpartyPayee(relayerAddr, channelID) addr, err := store.Get(key) if err != nil { @@ -272,9 +272,9 @@ func (k Keeper) GetAllCounterpartyPayees(ctx context.Context) []types.Registered } // SetRelayerAddressForAsyncAck sets the forward relayer address during OnRecvPacket in case of async acknowledgement -func (k Keeper) SetRelayerAddressForAsyncAck(ctx context.Context, packetID channeltypes.PacketId, address string) { +func (k Keeper) SetRelayerAddressForAsyncAck(ctx context.Context, packetID channeltypes.PacketId, addr string) { store := k.KVStoreService.OpenKVStore(ctx) - if err := store.Set(types.KeyRelayerAddressForAsyncAck(packetID), []byte(address)); err != nil { + if err := store.Set(types.KeyRelayerAddressForAsyncAck(packetID), []byte(addr)); err != nil { panic(err) } } diff --git a/modules/core/keeper/keeper_test.go b/modules/core/keeper/keeper_test.go index e0c37bbc53f..5162589e02d 100644 --- a/modules/core/keeper/keeper_test.go +++ b/modules/core/keeper/keeper_test.go @@ -3,12 +3,12 @@ package keeper_test import ( "testing" - "github.com/cosmos/cosmos-sdk/codec/address" testifysuite "github.com/stretchr/testify/suite" "cosmossdk.io/log" upgradekeeper "cosmossdk.io/x/upgrade/keeper" + "github.com/cosmos/cosmos-sdk/codec/address" "github.com/cosmos/cosmos-sdk/runtime" clienttypes "github.com/cosmos/ibc-go/v9/modules/core/02-client/types"