Skip to content

Commit

Permalink
Add support for pending blocks (#2225).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Mar 8, 2022
1 parent 38e825c commit 54e6e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/providers/src.ts/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Formatter {
};

formats.block = {
hash: hash,
hash: Formatter.allowNull(hash),
parentHash: hash,
number: number,

Expand All @@ -141,7 +141,7 @@ export class Formatter {
gasLimit: bigNumber,
gasUsed: bigNumber,

miner: address,
miner: Formatter.allowNull(address),
extraData: data,

transactions: Formatter.allowNull(Formatter.arrayOf(hash)),
Expand Down

0 comments on commit 54e6e57

Please sign in to comment.