Fixed resolveName when name is an address with an invalid checksum (#694).
This commit is contained in:
parent
a21c430c7a
commit
1e72fc7d6f
@ -835,7 +835,10 @@ export class BaseProvider extends Provider {
|
||||
// If it is already an address, nothing to resolve
|
||||
try {
|
||||
return Promise.resolve(this.formatter.address(name));
|
||||
} catch (error) { }
|
||||
} catch (error) {
|
||||
// If is is a hexstring, the address is bad (See #694)
|
||||
if (isHexString(name)) { throw error; }
|
||||
}
|
||||
|
||||
// Get the addr from the resovler
|
||||
const resolverAddress = await this._getResolver(name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user