Skip to content

Commit

Permalink
Fix formatting for blockWithTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed May 11, 2022
1 parent 56cc880 commit d259f34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/CeloProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export class CeloProvider extends providers.JsonRpcProvider {
blockFormat.gasLimit = () => BigNumber.from(0);
blockFormat.nonce = () => "";
blockFormat.difficulty = () => 0;

const blockWithTransactionsFormat =
this.formatter.formats.blockWithTransactions;
blockWithTransactionsFormat.gasLimit = () => BigNumber.from(0);
blockWithTransactionsFormat.nonce = () => "";
blockWithTransactionsFormat.difficulty = () => 0;
}

/**
Expand Down

0 comments on commit d259f34

Please sign in to comment.