chore: fix function names (#21168)
Signed-off-by: pengbanban <pengbanban@aliyun.com>
This commit is contained in:
parent
ccd3d992ea
commit
3128b08cfc
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user