Skip to content

Commit

Permalink
Fix resolveName when name is an address with an invalid checksum (#694).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jan 8, 2020
1 parent 4478896 commit bd066b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src.ts/providers/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,10 @@ export class BaseProvider extends Provider {
// If it is already an address, nothing to resolve
try {
return Promise.resolve(getAddress(name));
} catch (error) { }
} catch (error) {
// See #694
if (isHexString(name)) { throw error; }
}

let self = this;

Expand Down

0 comments on commit bd066b8

Please sign in to comment.