From 842650486af91d4764a5c25b74bb3ce44ee79ccf Mon Sep 17 00:00:00 2001 From: icarus012832 Date: Thu, 9 May 2024 23:09:35 +0900 Subject: [PATCH] chore: fix minor typos --- modules/apps/transfer/keeper/keeper.go | 2 +- modules/apps/transfer/simulation/genesis.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/apps/transfer/keeper/keeper.go b/modules/apps/transfer/keeper/keeper.go index 0ec4dac6abf..6ee9ee7edfe 100644 --- a/modules/apps/transfer/keeper/keeper.go +++ b/modules/apps/transfer/keeper/keeper.go @@ -105,7 +105,7 @@ func (k Keeper) hasCapability(ctx sdk.Context, portID string) bool { return ok } -// BindPort defines a wrapper function for the ort Keeper's function in +// BindPort defines a wrapper function for the port Keeper's function in // order to expose it to module's InitGenesis function func (k Keeper) BindPort(ctx sdk.Context, portID string) error { capability := k.portKeeper.BindPort(ctx, portID) diff --git a/modules/apps/transfer/simulation/genesis.go b/modules/apps/transfer/simulation/genesis.go index fded62be9a2..6887ec48bf1 100644 --- a/modules/apps/transfer/simulation/genesis.go +++ b/modules/apps/transfer/simulation/genesis.go @@ -15,8 +15,8 @@ import ( // Simulation parameter constants const port = "port_id" -// RadomEnabled randomized send or receive enabled param with 75% prob of being true. -func RadomEnabled(r *rand.Rand) bool { +// RandomEnabled randomized send or receive enabled param with 75% prob of being true. +func RandomEnabled(r *rand.Rand) bool { return r.Int63n(101) <= 75 } @@ -31,13 +31,13 @@ func RandomizedGenState(simState *module.SimulationState) { var sendEnabled bool simState.AppParams.GetOrGenerate( string(types.KeySendEnabled), &sendEnabled, simState.Rand, - func(r *rand.Rand) { sendEnabled = RadomEnabled(r) }, + func(r *rand.Rand) { sendEnabled = RandomEnabled(r) }, ) var receiveEnabled bool simState.AppParams.GetOrGenerate( string(types.KeyReceiveEnabled), &receiveEnabled, simState.Rand, - func(r *rand.Rand) { receiveEnabled = RadomEnabled(r) }, + func(r *rand.Rand) { receiveEnabled = RandomEnabled(r) }, ) transferGenesis := types.GenesisState{