diff --git a/params/config.go b/params/config.go index 4243ba2328..24a62a5603 100644 --- a/params/config.go +++ b/params/config.go @@ -661,6 +661,10 @@ type Rules struct { // Rules for Ethereum releases EthRules + RulesExtra +} + +type RulesExtra struct { // Rules for Avalanche releases AvalancheRules diff --git a/plugin/evm/block_test.go b/plugin/evm/block_test.go index f30cc4ceae..79d69811db 100644 --- a/plugin/evm/block_test.go +++ b/plugin/evm/block_test.go @@ -89,8 +89,10 @@ func TestHandlePrecompileAccept(t *testing.T) { // Call handlePrecompileAccept blk := vm.newBlock(ethBlock) rules := params.Rules{ - AccepterPrecompiles: map[common.Address]precompileconfig.Accepter{ - precompileAddr: mockAccepter, + RulesExtra: params.RulesExtra{ + AccepterPrecompiles: map[common.Address]precompileconfig.Accepter{ + precompileAddr: mockAccepter, + }, }, } require.NoError(blk.handlePrecompileAccept(rules, nil))