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 = (
chainId: number
): IAddressResolver<SelectedResolvedName<any>> => {
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<