fix unit tests

This commit is contained in:
Cal Bera 2025-08-06 12:41:39 -07:00
parent 88db0d12fa
commit 6d77b54f0c

View file

@ -44,6 +44,8 @@ func newPrague1Config(distributor common.Address) *params.ChainConfig {
cfg := *params.AllDevChainProtocolChanges // copy cfg := *params.AllDevChainProtocolChanges // copy
cfg.Berachain.Prague1 = params.Prague1Config{ cfg.Berachain.Prague1 = params.Prague1Config{
Time: &zero, Time: &zero,
BaseFeeChangeDenominator: 48,
MinimumBaseFeeWei: 10000000000,
PoLDistributorAddress: distributor, PoLDistributorAddress: distributor,
} }
return &cfg return &cfg
@ -140,6 +142,8 @@ func TestValidateBody_PrePrague1_PoLProhibited(t *testing.T) {
future := uint64(1000) future := uint64(1000)
cfg := *params.AllDevChainProtocolChanges cfg := *params.AllDevChainProtocolChanges
cfg.Berachain.Prague1.Time = &future cfg.Berachain.Prague1.Time = &future
cfg.Berachain.Prague1.BaseFeeChangeDenominator = 48
cfg.Berachain.Prague1.MinimumBaseFeeWei = 10000000000
cfg.Berachain.Prague1.PoLDistributorAddress = distributor cfg.Berachain.Prague1.PoLDistributorAddress = distributor
chain, validator := buildTestChain(t, &cfg) chain, validator := buildTestChain(t, &cfg)