From dfe2822d513febe30e36aa0527cc3600bfd6df19 Mon Sep 17 00:00:00 2001 From: harkamal Date: Fri, 28 Jul 2023 20:29:08 +0530 Subject: [PATCH] further cleanups --- packages/block/src/header.ts | 4 ++-- packages/block/test/eip4844block.spec.ts | 2 +- packages/block/test/testdata/payload-slot-87335.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/block/src/header.ts b/packages/block/src/header.ts index 27a71e4737..e1db2ab2b0 100644 --- a/packages/block/src/header.ts +++ b/packages/block/src/header.ts @@ -579,12 +579,12 @@ export class BlockHeader { * Returns the price per unit of blob gas for a blob transaction in the current/pending block * @returns the price in gwei per unit of blob gas spent */ - getblobGasPrice(): bigint { + getBlobGasPrice(): bigint { if (this.excessBlobGas === undefined) { throw new Error('header must have excessBlobGas field populated') } return fakeExponential( - this.common.param('gasPrices', 'minblobGasPrice'), + this.common.param('gasPrices', 'minBlobGasPrice'), this.excessBlobGas, this.common.param('gasConfig', 'blobGasPriceUpdateFraction') ) diff --git a/packages/block/test/eip4844block.spec.ts b/packages/block/test/eip4844block.spec.ts index 05ef8a054a..7548e0c42e 100644 --- a/packages/block/test/eip4844block.spec.ts +++ b/packages/block/test/eip4844block.spec.ts @@ -142,7 +142,7 @@ describe('blob gas tests', () => { { common, skipConsensusFormatValidation: true } ) excessBlobGas = highGasHeader.calcNextExcessBlobGas() - blobGasPrice = highGasHeader.getblobGasPrice() + blobGasPrice = highGasHeader.getBlobGasPrice() assert.equal(excessBlobGas, 6684672n) assert.equal(blobGasPrice, 6n, 'computed correct blob gas price') diff --git a/packages/block/test/testdata/payload-slot-87335.json b/packages/block/test/testdata/payload-slot-87335.json index ffdcc9839d..78716c7b92 100644 --- a/packages/block/test/testdata/payload-slot-87335.json +++ b/packages/block/test/testdata/payload-slot-87335.json @@ -19,7 +19,7 @@ "0x03f897850120b996ed80840bebc200843b9aca078303345094c8d369b164361a8961286cfbab3bc10f962185a88080c08411e1a300e1a0011df88a2971c8a7ac494a7ba37ec1acaa1fc1edeeb38c839b5d1693d47b69b080a032f122f06e5802224db4c8a58fd22c75173a713f63f89936f811c144b9e40129a043a2a872cbfa5727007adf6a48febe5f190d2e4cd5ed6122823fb6ff47ecda32" ], "withdrawals": [], - "excess_data_gas": "262144", - "data_gas_used": "524288", + "excess_blob_gas": "262144", + "blob_gas_used": "524288", "parent_beacon_block_root": "0x1344ac29ccbab1c5208e04edf83d897b9679143cda921caf9959d4e7547267ea" }