chore: fix function names (#21168)

Signed-off-by: pengbanban <pengbanban@aliyun.com>
This commit is contained in:
pengbanban 2024-08-05 17:50:49 +09:00 committed by GitHub
parent ccd3d992ea
commit 3128b08cfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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

View File

@ -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))
}