Skip to content

Commit 6ce56f8

Browse files
committed
add peer dependency for sdk
1 parent ef90fee commit 6ce56f8

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

sdk/examples/src/index.ts

+9-6
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,24 @@ import "@wormhole-foundation/sdk-solana-ntt";
1414
import { TEST_NTT_SPL22_TOKENS, TEST_NTT_TOKENS } from "./consts.js";
1515
import { getSigner } from "./helpers.js";
1616

17+
// EVM 1.0.0, Solana 1.0.0
1718
const TOKEN_CONTRACTS = TEST_NTT_TOKENS;
18-
//const TOKEN_CONTRACTS = TEST_NTT_SPL22_TOKENS;
19+
// EVM 1.0.0 Solana 2.0.0
20+
// const TOKEN_CONTRACTS = TEST_NTT_SPL22_TOKENS;
1921

2022
// Recover an in-flight transfer by setting txids here from output of previous run
2123
const recoverTxids: TransactionId[] = [
2224
//{ chain: "Solana", txid: "hZXRs9TEvMWnSAzcgmrEuHsq1C5rbcompy63vkJ2SrXv4a7u6ZBEaJAkBMXKAfScCooDNhN36Jt4PMcDhN8yGjP", },
23-
// Unused adn staged
24-
// {chain "Sepolia", txid: "0x9f2b1a8124f8377d77deb5c85f165c290669587b494c598beacea60a4d9a00fd"}
25-
// {chain "Sepolia", txid: "0x1aff02ed4bf9d51a424626187e3e331304229fc0d422b7abfe8025452b166180"}
25+
//{ chain: "Sepolia", txid: "0x9f2b1a8124f8377d77deb5c85f165c290669587b494c598beacea60a4d9a00fd", },
26+
//{ chain: "Sepolia", txid: "0x7c60e520f807593d27702427666e5c72aa282a3f14fe59ec934c5f9de9558609", },
27+
// Unused and staged
28+
//{chain: "Sepolia", txid: "0x1aff02ed4bf9d51a424626187e3e331304229fc0d422b7abfe8025452b166180"}
2629
];
2730

2831
(async function () {
2932
const wh = new Wormhole("Testnet", [solana.Platform, evm.Platform]);
30-
const src = wh.getChain("Solana");
31-
const dst = wh.getChain("Sepolia");
33+
const src = wh.getChain("Sepolia");
34+
const dst = wh.getChain("Solana");
3235

3336
const srcSigner = await getSigner(src);
3437
const dstSigner = await getSigner(dst);

sdk/route/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
"@wormhole-foundation/sdk-evm-ntt": "0.0.1-beta.1",
5252
"@wormhole-foundation/sdk-connect": "0.6.5"
5353
},
54+
"peerDependencies": {
55+
"@wormhole-foundation/sdk-connect": "^0.6"
56+
},
5457
"type": "module",
5558
"exports": {
5659
".": {

0 commit comments

Comments
 (0)