Skip to content

Commit

Permalink
chore: fix minor typos (#6285)
Browse files Browse the repository at this point in the history
  • Loading branch information
icarus012832 authored May 10, 2024
1 parent f5a62cf commit af02f3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/apps/transfer/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions modules/apps/transfer/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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{
Expand Down

0 comments on commit af02f3b

Please sign in to comment.