diff --git a/packages/dapp-kit/src/utils/get-account-domain.ts b/packages/dapp-kit/src/utils/get-account-domain.ts index a2f1af16..698b25cc 100644 --- a/packages/dapp-kit/src/utils/get-account-domain.ts +++ b/packages/dapp-kit/src/utils/get-account-domain.ts @@ -1,71 +1,7 @@ -import { genesisBlocks } from '../constants'; +import { genesisBlocks, VNS_RESOLVER } from '../constants'; import { ThorClient } from '@vechain/sdk-network'; import { ABIContract } from '@vechain/sdk-core'; -export const VNS_RESOLVER = { - main: '0xA11413086e163e41901bb81fdc5617c975Fa5a1A', - test: '0xc403b8EA53F707d7d4de095f0A20bC491Cf2bc94', - abi: [ - { - "inputs": [ - { - "internalType": "string[]", - "name": "names", - "type": "string[]" - } - ], - "name": "getAddresses", - "outputs": [ - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "addresses", - "type": "address[]" - } - ], - "name": "getNames", - "outputs": [ - { - "internalType": "string[]", - "name": "names", - "type": "string[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "string[]", - "name": "names", - "type": "string[]" - } - ], - "name": "getNamehashes", - "outputs": [ - { - "internalType": "bytes32[]", - "name": "nodes", - "type": "bytes32[]" - } - ], - "stateMutability": "pure", - "type": "function" - } - ] -}; - /** * Get the domain of an account */ diff --git a/packages/dapp-kit/test/utils/get-account-domain.test.ts b/packages/dapp-kit/test/utils/get-account-domain.test.ts index 7657c202..50c90820 100644 --- a/packages/dapp-kit/test/utils/get-account-domain.test.ts +++ b/packages/dapp-kit/test/utils/get-account-domain.test.ts @@ -1,6 +1,7 @@ import { describe, it, expect, vi } from 'vitest'; -import { getAccountDomain, VNS_RESOLVER } from '../../src/utils/get-account-domain'; +import { getAccountDomain } from '../../src/utils/get-account-domain'; import { ABIContract } from '@vechain/sdk-core'; +import { VNS_RESOLVER } from '../../src'; vi.mock('@vechain/connex-framework');