Skip to content

Commit

Permalink
Merge pull request #1 from escottalexander/patch-1
Browse files Browse the repository at this point in the history
Add post-dencun properties to block header
  • Loading branch information
damianmarti authored Apr 2, 2024
2 parents 01890b0 + 0517c4f commit e167331
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,19 @@ const Home: NextPage = () => {
if ("withdrawalsRoot" in blockData && blockData.withdrawalsRoot !== undefined) {
values.push(blockData.withdrawalsRoot);
}
if ("blobGasUsed" in blockData && blockData.blobGasUsed !== undefined && blockData.blobGasUsed !== null) {
values.push(blockData.blobGasUsed as `0x${string}`);
}
if ("excessBlobGas" in blockData && blockData.excessBlobGas !== undefined && blockData.excessBlobGas !== null) {
values.push(blockData.excessBlobGas as `0x${string}`);
}
if (
"parentBeaconBlockRoot" in blockData &&
blockData.parentBeaconBlockRoot !== undefined &&
blockData.parentBeaconBlockRoot !== null
) {
values.push(blockData.parentBeaconBlockRoot as `0x${string}`);
}

console.log("blockData values: ", values);
for (let i = 0; i < values.length; i++) {
Expand Down

0 comments on commit e167331

Please sign in to comment.