Fix default resolver not being caught for testnets
This commit is contained in:
parent
562f490e27
commit
9d78cab753
|
@ -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<
|
||||||
|
|
Loading…
Reference in New Issue