From 6a3f88a545d4275b09c07fc9e0f1c5951680045b Mon Sep 17 00:00:00 2001 From: friendlyping Date: Fri, 16 Aug 2024 16:16:33 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: friendlyping --- tests/ibc/gmp_swap_forward_test.go | 2 +- x/dex/keeper/migrations.go | 2 +- x/dex/keeper/pool_reserves.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ibc/gmp_swap_forward_test.go b/tests/ibc/gmp_swap_forward_test.go index 7fd92d904..c337c953c 100644 --- a/tests/ibc/gmp_swap_forward_test.go +++ b/tests/ibc/gmp_swap_forward_test.go @@ -10,7 +10,7 @@ import ( swaptypes "github.com/neutron-org/neutron/v4/x/ibcswap/types" ) -// TestGMPSwap_Success asserts that the swap middleware works as intended when the original message is sent via GMP +// TestGMPSwapAndForward_Success asserts that the swap middleware works as intended when the original message is sent via GMP func (s *IBCTestSuite) TestGMPSwapAndForward_Success() { // Send an IBC transfer from provider to Neutron, so we can initialize a pool with the IBC denom token + native Neutron token s.IBCTransferProviderToNeutron(s.providerAddr, s.neutronAddr, nativeDenom, ibcTransferAmount, "") diff --git a/x/dex/keeper/migrations.go b/x/dex/keeper/migrations.go index ef9a8c2bb..40ae77bf4 100644 --- a/x/dex/keeper/migrations.go +++ b/x/dex/keeper/migrations.go @@ -22,7 +22,7 @@ func (m Migrator) Migrate2to3(ctx sdk.Context) error { return v3.MigrateStore(ctx, m.keeper.cdc, m.keeper.storeKey) } -// Migrate2to3 migrates from version 3 to 4. +// Migrate3to4 migrates from version 3 to 4. func (m Migrator) Migrate3to4(ctx sdk.Context) error { return v4.MigrateStore(ctx, m.keeper.cdc, m.keeper.storeKey) } diff --git a/x/dex/keeper/pool_reserves.go b/x/dex/keeper/pool_reserves.go index 1c3a10f61..5f0262449 100644 --- a/x/dex/keeper/pool_reserves.go +++ b/x/dex/keeper/pool_reserves.go @@ -35,7 +35,7 @@ func (k Keeper) GetPoolReserves( return tick.GetPoolReserves(), true } -// RemoveTickLiquidity removes a tickLiquidity from the store +// RemovePoolReserves removes a tickLiquidity from the store func (k Keeper) RemovePoolReserves(ctx sdk.Context, poolReservesID *types.PoolReservesKey) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.TickLiquidityKeyPrefix)) store.Delete(poolReservesID.KeyMarshal())