Removed redundant call to normalizing blockTag (1838).
This commit is contained in:
parent
fb6d141723
commit
d5b41ce210
@ -1338,7 +1338,7 @@ export class BaseProvider extends Provider implements EnsProvider {
|
|||||||
params.blockHash = blockHashOrBlockTag;
|
params.blockHash = blockHashOrBlockTag;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
params.blockTag = this.formatter.blockTag(await this._getBlockTag(blockHashOrBlockTag));
|
params.blockTag = await this._getBlockTag(blockHashOrBlockTag);
|
||||||
if (isHexString(params.blockTag)) {
|
if (isHexString(params.blockTag)) {
|
||||||
blockNumber = parseInt(params.blockTag.substring(2), 16);
|
blockNumber = parseInt(params.blockTag.substring(2), 16);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user