Skip to content

Commit

Permalink
Merge pull request #7 from bgd-labs/fix/roots-api-dencun
Browse files Browse the repository at this point in the history
feat: add blobGasUsed excessBlobGas to rlp encoding for dencun update
  • Loading branch information
brotherlymite authored Mar 13, 2024
2 parents f034040 + d5a51a4 commit f4e4cd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/libs/ProofsHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export function prepareBlockRLP(rawBlock: any) {
rawBlock.nonce,
BigNumber.from(rawBlock.baseFeePerGas).toHexString(),
rawBlock.withdrawalsRoot,
BigNumber.from(rawBlock.blobGasUsed).toHexString(),
BigNumber.from(rawBlock.excessBlobGas).toHexString(),
rawBlock.parentBeaconBlockRoot
];
return ethers.utils.RLP.encode(rawData);
}
Expand Down

0 comments on commit f4e4cd4

Please sign in to comment.