From 5421d8a6771241981481644ca6cb57921056f7b0 Mon Sep 17 00:00:00 2001 From: Darioush Jalali Date: Fri, 6 Sep 2024 13:35:17 -0700 Subject: [PATCH] separate RulesExtra --- params/config.go | 4 ++++ plugin/evm/block_test.go | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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))