Fix default resolver not being caught for testnets

This commit is contained in:
Willian Mitsuda 2022-03-30 23:09:03 -03:00
parent 562f490e27
commit 9d78cab753
1 changed files with 4 additions and 4 deletions

View File

@ -45,11 +45,11 @@ const resolvers: Record<number, IAddressResolver<SelectedResolvedName<any>>> = {
export const getResolver = ( export const getResolver = (
chainId: number chainId: number
): IAddressResolver<SelectedResolvedName<any>> => { ): IAddressResolver<SelectedResolvedName<any>> => {
const resolver = resolvers[chainId]; const res = resolvers[chainId];
if (resolver === undefined) { if (res === undefined) {
return resolver[0]; // default MAGIC NUMBER return resolvers[0]; // default MAGIC NUMBER
} }
return resolver; return res;
}; };
export const resolverRendererRegistry = new Map< export const resolverRendererRegistry = new Map<