Skip to content

Commit c464087

Browse files
committed
Fix lint issues
1 parent fdc2b92 commit c464087

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

x/wasm/simulation/operations.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func WeightedOperations(
7272
),
7373
simulation.NewWeightedOperation(
7474
weightMsgInstantiateContract,
75-
SimulateMsgInstantiateContract(ak, bk, wasmKeeper, DefaultSimulationCodeIdSelector),
75+
SimulateMsgInstantiateContract(ak, bk, wasmKeeper, DefaultSimulationCodeIDSelector),
7676
),
7777
}
7878
}
@@ -119,11 +119,11 @@ func SimulateMsgStoreCode(ak types.AccountKeeper, bk simulation.BankKeeper, wasm
119119
}
120120
}
121121

122-
// SimulationCodeIdSelector returns code id to be used in simulations
123-
type SimulationCodeIdSelector = func(ctx sdk.Context, wasmKeeper WasmKeeper) uint64
122+
// CodeIDSelector returns code id to be used in simulations
123+
type CodeIDSelector = func(ctx sdk.Context, wasmKeeper WasmKeeper) uint64
124124

125-
// DefaultSimulationCodeIdSelector picks the first code id
126-
func DefaultSimulationCodeIdSelector(ctx sdk.Context, wasmKeeper WasmKeeper) uint64 {
125+
// DefaultSimulationCodeIDSelector picks the first code id
126+
func DefaultSimulationCodeIDSelector(ctx sdk.Context, wasmKeeper WasmKeeper) uint64 {
127127
var codeID uint64
128128
wasmKeeper.IterateCodeInfos(ctx, func(u uint64, info types.CodeInfo) bool {
129129
if info.InstantiateConfig.Permission != types.AccessTypeEverybody {
@@ -136,7 +136,7 @@ func DefaultSimulationCodeIdSelector(ctx sdk.Context, wasmKeeper WasmKeeper) uin
136136
}
137137

138138
// SimulateMsgInstantiateContract generates a MsgInstantiateContract with random values
139-
func SimulateMsgInstantiateContract(ak types.AccountKeeper, bk simulation.BankKeeper, wasmKeeper WasmKeeper, codeSelector SimulationCodeIdSelector) simtypes.Operation {
139+
func SimulateMsgInstantiateContract(ak types.AccountKeeper, bk simulation.BankKeeper, wasmKeeper WasmKeeper, codeSelector CodeIDSelector) simtypes.Operation {
140140
return func(
141141
r *rand.Rand,
142142
app *baseapp.BaseApp,

0 commit comments

Comments
 (0)