Skip to content

Commit

Permalink
fix already initialized error
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei1997 committed Sep 6, 2024
1 parent bed9d49 commit 8cf6e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testutil/keeper/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func MockEVMKeeper() (*evmkeeper.Keeper, sdk.Context, *app.App) {
}

func MockEVMKeeperWithNewAppPrecomps() (*evmkeeper.Keeper, sdk.Context, *app.App) {
testApp := app.Setup(false, true)
testApp := EVMTestApp()
ctx := testApp.GetContextForDeliverTx([]byte{}).WithBlockHeight(8).WithBlockTime(time.Now())

Check warning

Code scanning / CodeQL

Calling the system time Warning test

Calling the system time may be a possible source of non-determinism
k := testApp.EvmKeeper
k.InitGenesis(ctx, *evmtypes.DefaultGenesis())
Expand Down

0 comments on commit 8cf6e2b

Please sign in to comment.