From 2f57c6a4ab44083b2c03f5e57b2702ab7078d286 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 24 Dec 2021 01:08:54 -0500 Subject: [PATCH] Do not swallow ENS not supported errors (#2387). --- packages/providers/src.ts/base-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/providers/src.ts/base-provider.ts b/packages/providers/src.ts/base-provider.ts index 68d2682db..36421daef 100644 --- a/packages/providers/src.ts/base-provider.ts +++ b/packages/providers/src.ts/base-provider.ts @@ -1642,7 +1642,7 @@ export class BaseProvider extends Provider implements EnsProvider { return new Resolver(this, address, name); } catch (error) { if (error.code === Logger.errors.CALL_EXCEPTION) { return null; } - return null; + throw error; } }