@@ -72,7 +72,7 @@ func WeightedOperations(
72
72
),
73
73
simulation .NewWeightedOperation (
74
74
weightMsgInstantiateContract ,
75
- SimulateMsgInstantiateContract (ak , bk , wasmKeeper , DefaultSimulationCodeIdSelector ),
75
+ SimulateMsgInstantiateContract (ak , bk , wasmKeeper , DefaultSimulationCodeIDSelector ),
76
76
),
77
77
}
78
78
}
@@ -119,11 +119,11 @@ func SimulateMsgStoreCode(ak types.AccountKeeper, bk simulation.BankKeeper, wasm
119
119
}
120
120
}
121
121
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
124
124
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 {
127
127
var codeID uint64
128
128
wasmKeeper .IterateCodeInfos (ctx , func (u uint64 , info types.CodeInfo ) bool {
129
129
if info .InstantiateConfig .Permission != types .AccessTypeEverybody {
@@ -136,7 +136,7 @@ func DefaultSimulationCodeIdSelector(ctx sdk.Context, wasmKeeper WasmKeeper) uin
136
136
}
137
137
138
138
// 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 {
140
140
return func (
141
141
r * rand.Rand ,
142
142
app * baseapp.BaseApp ,
0 commit comments