From 10a024487b9484feef37cb075ace3ee3c7fc17c4 Mon Sep 17 00:00:00 2001 From: katspaugh Date: Tue, 28 Nov 2023 10:56:26 +0100 Subject: [PATCH] Resolver ABI --- src/services/ens/custom.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/ens/custom.ts b/src/services/ens/custom.ts index 27f57eb8ae..1f5f2aeed7 100644 --- a/src/services/ens/custom.ts +++ b/src/services/ens/custom.ts @@ -3,6 +3,7 @@ import { Contract, utils, constants } from 'ethers' // ENS Registry ABI (simplified version) const ensRegistryAbi = ['function resolver(bytes32 node) external view returns (address)'] +const resolverAbi = ['function addr(bytes32 node) external view returns (address)'] export const customResolveName = async ( registryAddress: string, @@ -17,7 +18,7 @@ export const customResolveName = async ( return undefined } - const resolver = new Contract(resolverAddress, ensRegistryAbi, rpcProvider) + const resolver = new Contract(resolverAddress, resolverAbi, rpcProvider) const address = await resolver.addr(namehash) return address || undefined