Skip to content

Commit e1c0f99

Browse files
committed
address burn issue, fix (merge issue?) with isEnabled
Signed-off-by: garyschulte <garyschulte@gmail.com>
1 parent 320a8aa commit e1c0f99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/context/cfg.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ pub const CfgEnv = struct {
348348
/// - Cancun: 3338477 (`BLOB_BASE_FEE_UPDATE_FRACTION_CANCUN`)
349349
pub fn blobBaseFeeUpdateFraction(self: CfgEnv) u64 {
350350
return self.blob_base_fee_update_fraction orelse
351-
if (self.spec.isEnabledIn(.bpo2))
351+
if (primitives.isEnabledIn(self.spec, .bpo2))
352352
primitives.BLOB_BASE_FEE_UPDATE_FRACTION_BPO2
353-
else if (self.spec.isEnabledIn(.bpo1))
353+
else if (primitives.isEnabledIn(self.spec, .bpo1))
354354
primitives.BLOB_BASE_FEE_UPDATE_FRACTION_BPO1
355-
else if (self.spec.isEnabledIn(.prague))
355+
else if (primitives.isEnabledIn(self.spec, .prague))
356356
primitives.BLOB_BASE_FEE_UPDATE_FRACTION_PRAGUE
357357
else
358358
primitives.BLOB_BASE_FEE_UPDATE_FRACTION_CANCUN;

src/spec_test/runner.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub fn runTestCase(tc: types.TestCase, allocator: std.mem.Allocator) TestOutcome
247247
// Set block env
248248
const blob_excess_gas_and_price: ?context.BlobExcessGasAndPrice =
249249
if (tc.blob_versioned_hashes_count > 0 or tc.excess_blob_gas > 0)
250-
context.BlobExcessGasAndPrice.new(tc.excess_blob_gas, primitives.BLOB_BASE_FEE_UPDATE_FRACTION_PRAGUE)
250+
context.BlobExcessGasAndPrice.new(tc.excess_blob_gas, ctx.cfg.blobBaseFeeUpdateFraction())
251251
else
252252
null;
253253
ctx.setBlock(context.BlockEnv{

0 commit comments

Comments
 (0)