Skip to content

Commit

Permalink
Merge pull request #6007 from NomicFoundation/totaldifficulty
Browse files Browse the repository at this point in the history
Make totalDifficulty field optional, as spec has changed.
  • Loading branch information
nebasuke authored Nov 29, 2024
2 parents 9ad82f5 + 56d127b commit 0ea1fd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/serious-sloths-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Make totalDifficulty field optional, as spec has changed.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const baseBlockResponse = {
receiptsRoot: rpcHash,
miner: rpcAddress,
difficulty: rpcQuantity,
totalDifficulty: rpcQuantity,
// now optional since https://github.com/ethereum/execution-apis/pull/570
totalDifficulty: optional(rpcQuantity),
extraData: rpcData,
size: rpcQuantity,
gasLimit: rpcQuantity,
Expand Down

0 comments on commit 0ea1fd5

Please sign in to comment.