Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
fix(test): fix nil ptr issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jan 4, 2024
1 parent 954216b commit 32256e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cosmos/x/evm/plugins/historical/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ var _ = Describe("Historical Data", func() {
ctx = testutil.NewContext(log.NewTestLogger(GinkgoT())).WithBlockHeight(0)
bp := mock.NewBlockPluginMock()

genesis := core.DefaultGenesis
genesis.Config = params.DefaultChainConfig
p = utils.MustGetAs[*plugin](NewPlugin(params.DefaultChainConfig, bp, nil, testutil.EvmKey))
Expect(p.InitGenesis(ctx, core.DefaultGenesis)).To(Succeed())
Expect(p.InitGenesis(ctx, genesis)).To(Succeed())
})

When("Genesis block", func() {
Expand Down

0 comments on commit 32256e8

Please sign in to comment.