Skip to content

Commit d2c012d

Browse files
committed
test: Register SDK explicitly
1 parent 0743ad5 commit d2c012d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

solana/tests/anchor/anchor.test.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import {
1414
serialize,
1515
serializePayload,
1616
} from "@wormhole-foundation/sdk";
17-
import { Ntt } from "@wormhole-foundation/sdk-definitions-ntt";
17+
import {
18+
Ntt,
19+
register as registerDefinitions,
20+
} from "@wormhole-foundation/sdk-definitions-ntt";
1821
import * as testing from "@wormhole-foundation/sdk-definitions/testing";
1922
import {
2023
SolanaAddress,
@@ -25,7 +28,12 @@ import {
2528
SolanaWormholeCore,
2629
utils,
2730
} from "@wormhole-foundation/sdk-solana-core";
28-
import { IdlVersion, NTT, getTransceiverProgram } from "../../ts/index.js";
31+
import {
32+
IdlVersion,
33+
NTT,
34+
getTransceiverProgram,
35+
register as registerSolana,
36+
} from "../../ts/index.js";
2937
import { SolanaNtt } from "../../ts/sdk/index.js";
3038
import {
3139
TestDummyTransferHook,
@@ -36,6 +44,9 @@ import {
3644
signSendWait,
3745
} from "./utils/helpers.js";
3846

47+
registerDefinitions();
48+
registerSolana();
49+
3950
/**
4051
* Test Config Constants
4152
*/

0 commit comments

Comments
 (0)