diff --git a/store/cachekv/benchmark_test.go b/store/cachekv/benchmark_test.go index 158549b4bd..c29b51643d 100644 --- a/store/cachekv/benchmark_test.go +++ b/store/cachekv/benchmark_test.go @@ -72,7 +72,7 @@ type CacheStack struct { cacheStores []types.CacheKVStore } -// CurrentContext returns the top context of cached stack, +// CurrentStore returns the top context of cached stack, // if the stack is empty, returns the initial context. func (cs *CacheStack) CurrentStore() types.CacheKVStore { l := len(cs.cacheStores) diff --git a/x/auth/ante/setup_test.go b/x/auth/ante/setup_test.go index c63fb02be8..1e10cafa9e 100644 --- a/x/auth/ante/setup_test.go +++ b/x/auth/ante/setup_test.go @@ -117,7 +117,7 @@ func TestRecoverPanic(t *testing.T) { type OutOfGasDecorator struct{} -// AnteDecorator that will throw OutOfGas panic +// AnteHandle that will throw OutOfGas panic func (ogd OutOfGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { overLimit := ctx.GasMeter().Limit() + 1 diff --git a/x/gov/simulation/genesis.go b/x/gov/simulation/genesis.go index 6363a3a554..a522593a2b 100644 --- a/x/gov/simulation/genesis.go +++ b/x/gov/simulation/genesis.go @@ -59,7 +59,7 @@ func GenExpeditedMinDeposit(r *rand.Rand, bondDenom string) sdk.Coins { return sdk.NewCoins(sdk.NewInt64Coin(bondDenom, int64(simulation.RandIntBetween(r, 1e3/2, 1e3)))) } -// GenDepositMinInitialRatio returns randomized DepositMinInitialRatio +// GenDepositMinInitialDepositRatio returns randomized DepositMinInitialRatio func GenDepositMinInitialDepositRatio(r *rand.Rand) sdkmath.LegacyDec { return sdkmath.LegacyNewDec(int64(simulation.RandIntBetween(r, 0, 99))).Quo(sdkmath.LegacyNewDec(100)) }