Skip to content

Commit

Permalink
fix: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorigam committed Dec 16, 2024
1 parent f26fac9 commit 4b34cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 66 deletions.
66 changes: 1 addition & 65 deletions packages/dapp-kit/src/utils/get-account-domain.ts
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down
3 changes: 2 additions & 1 deletion packages/dapp-kit/test/utils/get-account-domain.test.ts
Original file line number Diff line number Diff line change
@@ -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');

Expand Down

0 comments on commit 4b34cc4

Please sign in to comment.