Skip to content

Commit

Permalink
feat: add parent beacon block root type to Block.ts (#2719)
Browse files Browse the repository at this point in the history
* Add parent beacon block root type to Block.ts

* Update block.ts

* Create plenty-shoes-roll.md

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
sammdec and jxom authored Sep 14, 2024
1 parent 0b5c7b6 commit 7fdb149
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-shoes-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added `parentBeaconBlockRoot` to `Block` type.
2 changes: 2 additions & 0 deletions src/types/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export type Block<
nonce: blockTag extends 'pending' ? null : Hex
/** Block number or `null` if pending */
number: blockTag extends 'pending' ? null : quantity
/** Root of the parent beacon chain block */
parentBeaconBlockRoot?: Hex | undefined
/** Parent block hash */
parentHash: Hash
/** Root of the this block’s receipts trie */
Expand Down

0 comments on commit 7fdb149

Please sign in to comment.