Skip to content

Commit

Permalink
fix: getBlock should not default to pending block
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Apr 1, 2022
1 parent 719dda5 commit 7a641b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class Provider implements ProviderInterface {
* @param blockNumber
* @returns the block object { block_number, previous_block_number, state_root, status, timestamp, transaction_receipts, transactions }
*/
public async getBlock(blockIdentifier: BlockIdentifier = 'pending'): Promise<GetBlockResponse> {
public async getBlock(blockIdentifier: BlockIdentifier = null): Promise<GetBlockResponse> {
return this.fetchEndpoint('get_block', { blockIdentifier });
}

Expand Down

0 comments on commit 7a641b5

Please sign in to comment.