From 32256e879aa1f2741976866ca4ebe2ab6c0795b3 Mon Sep 17 00:00:00 2001 From: itsdevbear Date: Thu, 4 Jan 2024 16:18:25 -0500 Subject: [PATCH] fix(test): fix nil ptr issue in test --- cosmos/x/evm/plugins/historical/plugin_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cosmos/x/evm/plugins/historical/plugin_test.go b/cosmos/x/evm/plugins/historical/plugin_test.go index 21a4816fa..13b422aef 100644 --- a/cosmos/x/evm/plugins/historical/plugin_test.go +++ b/cosmos/x/evm/plugins/historical/plugin_test.go @@ -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() {