From 360f21f9f890aa34798b78d792796bd1b09128be Mon Sep 17 00:00:00 2001 From: forcedebug <167591285+forcedebug@users.noreply.github.com> Date: Wed, 24 Apr 2024 05:44:04 +0800 Subject: [PATCH] Fix mismatched method names in comments (#1890) Signed-off-by: forcedebug --- app/test_common.go | 2 +- x/auction/keeper/keeper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test_common.go b/app/test_common.go index 725a245c..ca8d7d38 100644 --- a/app/test_common.go +++ b/app/test_common.go @@ -484,7 +484,7 @@ func (tApp TestApp) SetInflation(ctx sdk.Context, value sdk.Dec) { mk.SetParams(ctx, mintParams) } -// GeneratePrivKeyAddressPairsFromRand generates (deterministically) a total of n private keys and addresses. +// GeneratePrivKeyAddressPairs generates (deterministically) a total of n private keys and addresses. func GeneratePrivKeyAddressPairs(n int) (keys []cryptotypes.PrivKey, addrs []sdk.AccAddress) { r := rand.New(rand.NewSource(12345)) // make the generation deterministic keys = make([]cryptotypes.PrivKey, n) diff --git a/x/auction/keeper/keeper.go b/x/auction/keeper/keeper.go index 4b922ecc..de2744ba 100644 --- a/x/auction/keeper/keeper.go +++ b/x/auction/keeper/keeper.go @@ -172,7 +172,7 @@ func (k Keeper) removeFromByTimeIndex(ctx sdk.Context, endTime time.Time, auctio store.Delete(types.GetAuctionByTimeKey(endTime, auctionID)) } -// IterateAuctionByTime provides an iterator over auctions ordered by auction.EndTime. +// IterateAuctionsByTime provides an iterator over auctions ordered by auction.EndTime. // For each auction cb will be callled. If cb returns true the iterator will close and stop. func (k Keeper) IterateAuctionsByTime(ctx sdk.Context, inclusiveCutoffTime time.Time, cb func(auctionID uint64) (stop bool)) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.AuctionByTimeKeyPrefix)