Skip to content

Commit

Permalink
Update modifier.go
Browse files Browse the repository at this point in the history
  • Loading branch information
futreall authored Jan 17, 2025
1 parent 2e18fb6 commit a9160b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/util/genesis/modifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ func SetBlobParams(codec codec.Codec, params blobtypes.Params) Modifier {
}

// SetSlashingParams will set the provided slashing params as genesis state.
func SetSlashingParams(codec codec.Codec, parans slashingtypes.Params) Modifier {
func SetSlashingParams(codec codec.Codec, params slashingtypes.Params) Modifier {
return func(state map[string]json.RawMessage) map[string]json.RawMessage {
slashingGenState := slashingtypes.DefaultGenesisState()
slashingGenState.Params = parans
slashingGenState.Params = params
state[slashingtypes.ModuleName] = codec.MustMarshalJSON(slashingGenState)
return state
}
Expand Down

0 comments on commit a9160b0

Please sign in to comment.