Do not swallow ENS not supported errors (#2387).

This commit is contained in:
Richard Moore 2021-12-24 01:08:54 -05:00
parent d3d2953e8d
commit 2f57c6a4ab

@ -1642,7 +1642,7 @@ export class BaseProvider extends Provider implements EnsProvider {
return new Resolver(this, address, name); return new Resolver(this, address, name);
} catch (error) { } catch (error) {
if (error.code === Logger.errors.CALL_EXCEPTION) { return null; } if (error.code === Logger.errors.CALL_EXCEPTION) { return null; }
return null; throw error;
} }
} }