Skip to content

Commit

Permalink
Merge branch 'main' into damian/3636-noop-for-misbehaviour-in-updates…
Browse files Browse the repository at this point in the history
…tate
  • Loading branch information
crodriguezvega authored May 10, 2024
2 parents 9c41053 + af02f3b commit cca8d65
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/callbacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
go-version: '1.21'
- uses: actions/checkout@v4
- uses: golangci/[email protected].0
- uses: golangci/[email protected].1
with:
version: v1.57.2
args: --timeout 5m
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2emodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
go-version: '1.21'
- uses: actions/checkout@v4
- uses: golangci/[email protected].0
- uses: golangci/[email protected].1
with:
version: v1.57.2
args: --timeout 5m
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
go-version: '1.21'
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/[email protected].0
uses: golangci/[email protected].1
with:
version: v1.57.2
args: --timeout 10m
2 changes: 1 addition & 1 deletion .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
go-version: '1.21'
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/[email protected].0
uses: golangci/[email protected].1
with:
version: v1.57.2
args: --timeout 10m
2 changes: 1 addition & 1 deletion .github/workflows/wasm-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
go-version: '1.21'
- uses: actions/checkout@v4
- uses: golangci/[email protected].0
- uses: golangci/[email protected].1
with:
version: v1.57.2
args: --timeout 10m
Expand Down
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 cca8d65

Please sign in to comment.