From 9d78cab7535b27fc3da02b89174008caca7912b7 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Wed, 30 Mar 2022 23:09:03 -0300 Subject: [PATCH] Fix default resolver not being caught for testnets --- src/api/address-resolver/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/address-resolver/index.ts b/src/api/address-resolver/index.ts index 5997e01..313b7cd 100644 --- a/src/api/address-resolver/index.ts +++ b/src/api/address-resolver/index.ts @@ -45,11 +45,11 @@ const resolvers: Record>> = { export const getResolver = ( chainId: number ): IAddressResolver> => { - const resolver = resolvers[chainId]; - if (resolver === undefined) { - return resolver[0]; // default MAGIC NUMBER + const res = resolvers[chainId]; + if (res === undefined) { + return resolvers[0]; // default MAGIC NUMBER } - return resolver; + return res; }; export const resolverRendererRegistry = new Map<