Skip to content

Commit

Permalink
Removed redundant call to normalizing blockTag (1838).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Oct 4, 2021
1 parent fb6d141 commit d5b41ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ export class BaseProvider extends Provider implements EnsProvider {
params.blockHash = blockHashOrBlockTag;
} else {
try {
params.blockTag = this.formatter.blockTag(await this._getBlockTag(blockHashOrBlockTag));
params.blockTag = await this._getBlockTag(blockHashOrBlockTag);
if (isHexString(params.blockTag)) {
blockNumber = parseInt(params.blockTag.substring(2), 16);
}
Expand Down

0 comments on commit d5b41ce

Please sign in to comment.