@@ -93,7 +93,7 @@ func TestFullAppSimulation(t *testing.T) {
93
93
config := simcli .NewConfigFromFlags ()
94
94
config .ChainID = SimAppChainID
95
95
config .BlockMaxGas = SimBlockMaxGas
96
- db , dir , logger , skip , err := simtestutil .SetupSimulation (config , "leveldb-app-sim" , "Simulation" , simcli .FlagVerboseValue , simcli .FlagEnabledValue )
96
+ db , dir , logger , skip , err := simtestutil .SetupSimulation (config , "leveldb-app-sim" , "Simulation" , simcli .FlagVerboseValue , simcli .FlagEnabledValue ) //nolint: staticcheck
97
97
if skip {
98
98
t .Skip ("skipping application simulation" )
99
99
}
@@ -135,7 +135,7 @@ func TestAppImportExport(t *testing.T) {
135
135
config := simcli .NewConfigFromFlags ()
136
136
config .ChainID = SimAppChainID
137
137
config .BlockMaxGas = SimBlockMaxGas
138
- db , dir , logger , skip , err := simtestutil .SetupSimulation (config , "leveldb-app-sim" , "Simulation" , simcli .FlagVerboseValue , simcli .FlagEnabledValue )
138
+ db , dir , logger , skip , err := simtestutil .SetupSimulation (config , "leveldb-app-sim" , "Simulation" , simcli .FlagVerboseValue , simcli .FlagEnabledValue ) //nolint: staticcheck
139
139
if skip {
140
140
t .Skip ("skipping application import/export simulation" )
141
141
}
@@ -179,7 +179,7 @@ func TestAppImportExport(t *testing.T) {
179
179
180
180
fmt .Printf ("importing genesis...\n " )
181
181
182
- newDB , newDir , _ , _ , err := simtestutil .SetupSimulation (config , "leveldb-app-sim-2" , "Simulation-2" , simcli .FlagVerboseValue , simcli .FlagEnabledValue )
182
+ newDB , newDir , _ , _ , err := simtestutil .SetupSimulation (config , "leveldb-app-sim-2" , "Simulation-2" , simcli .FlagVerboseValue , simcli .FlagEnabledValue ) //nolint: staticcheck
183
183
184
184
require .NoError (t , err , "simulation setup failed" )
185
185
@@ -229,7 +229,7 @@ func TestAppImportExport(t *testing.T) {
229
229
stakingtypes .HistoricalInfoKey , stakingtypes .UnbondingIDKey , stakingtypes .UnbondingIndexKey , stakingtypes .UnbondingTypeKey , stakingtypes .ValidatorUpdatesKey ,
230
230
},
231
231
}, // ordering may change but it doesn't matter
232
- {app .keys [slashingtypes .StoreKey ], newApp .keys [slashingtypes .StoreKey ], [][]byte {}},
232
+ {app .keys [slashingtypes .StoreKey ], newApp .keys [slashingtypes .StoreKey ], [][]byte {slashingtypes . ValidatorMissedBlockBitmapKeyPrefix }},
233
233
{app .keys [minttypes .StoreKey ], newApp .keys [minttypes .StoreKey ], [][]byte {}},
234
234
{app .keys [distrtypes .StoreKey ], newApp .keys [distrtypes .StoreKey ], [][]byte {}},
235
235
{app .keys [banktypes .StoreKey ], newApp .keys [banktypes .StoreKey ], [][]byte {banktypes .BalancesPrefix }},
@@ -260,7 +260,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
260
260
config := simcli .NewConfigFromFlags ()
261
261
config .ChainID = SimAppChainID
262
262
config .BlockMaxGas = SimBlockMaxGas
263
- db , dir , logger , skip , err := simtestutil .SetupSimulation (config , "leveldb-app-sim" , "Simulation" , simcli .FlagVerboseValue , simcli .FlagEnabledValue )
263
+ db , dir , logger , skip , err := simtestutil .SetupSimulation (config , "leveldb-app-sim" , "Simulation" , simcli .FlagVerboseValue , simcli .FlagEnabledValue ) //nolint: staticcheck
264
264
265
265
if skip {
266
266
t .Skip ("skipping application simulation after import" )
@@ -310,7 +310,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
310
310
311
311
fmt .Printf ("importing genesis...\n " )
312
312
313
- newDB , newDir , _ , _ , err := simtestutil .SetupSimulation (config , "leveldb-app-sim-2" , "Simulation-2" , simcli .FlagVerboseValue , simcli .FlagEnabledValue )
313
+ newDB , newDir , _ , _ , err := simtestutil .SetupSimulation (config , "leveldb-app-sim-2" , "Simulation-2" , simcli .FlagVerboseValue , simcli .FlagEnabledValue ) //nolint: staticcheck
314
314
require .NoError (t , err , "simulation setup failed" )
315
315
316
316
defer func () {
@@ -344,15 +344,15 @@ func TestAppSimulationAfterImport(t *testing.T) {
344
344
// TODO: Make another test for the fuzzer itself, which just has noOp txs
345
345
// and doesn't depend on the application.
346
346
func TestAppStateDeterminism (t * testing.T ) {
347
- if ! simcli .FlagEnabledValue {
347
+ if ! simcli .FlagEnabledValue { //nolint: staticcheck
348
348
t .Skip ("skipping application simulation" )
349
349
}
350
350
351
351
config := simcli .NewConfigFromFlags ()
352
352
config .InitialBlockHeight = 1
353
353
config .ExportParamsPath = ""
354
- config .OnOperation = false
355
- config .AllInvariants = false
354
+ config .OnOperation = false //nolint: staticcheck
355
+ config .AllInvariants = false //nolint: staticcheck
356
356
config .ChainID = SimAppChainID
357
357
config .BlockMaxGas = SimBlockMaxGas
358
358
0 commit comments