@@ -9,25 +9,16 @@ import { getSigner } from "./helpers/index.js";
9
9
const wh = await wormhole ( "Testnet" , [ evm , solana ] ) ;
10
10
11
11
// Original Token to Attest
12
- // const token: TokenId = Wormhole.chainAddress(
13
- // "Solana",
14
- // "9rU2jFrzA5zDDmt9yR7vEABvXCUNJ1YgGigdTb9oCaTv",
15
- // );
16
- const token : TokenId = Wormhole . chainAddress (
17
- "Avalanche" ,
18
- "0x3bE4bce46442F5E85c47257145578E724E40cF97" ,
19
- ) ;
20
12
21
13
// grab context and signer
22
- const origChain = wh . getChain ( token . chain ) ;
14
+ const origChain = wh . getChain ( "Oasis" ) ;
15
+ const token = await origChain . getNativeWrappedTokenId ( ) ;
23
16
const { signer : origSigner } = await getSigner ( origChain ) ;
24
17
25
18
// Note: if the VAA is not produced before the attempt to retrieve it times out
26
19
// you should set this value to the txid logged in the previous run
27
20
let txid = undefined ;
28
21
// txid = "0x55127b9c8af46aaeea9ef28d8bf91e1aff920422fc1c9831285eb0f39ddca2fe";
29
- // txid = "FPNHIFFUZDVPT5SATZQZZ7DFGZMPCCHEFBCB5EZQJV4RRK3ZYTVA";
30
- // txid = "GWZU432ERFU3NES4MA7IAAP6DX73F5VRSSIWGJVC5JRHOH6UMWEQ";
31
22
32
23
if ( ! txid ) {
33
24
// create attestation from origin chain, the same VAA
@@ -57,7 +48,7 @@ import { getSigner } from "./helpers/index.js";
57
48
// Check if its attested and if not
58
49
// submit the attestation to the token bridge on the
59
50
// destination chain
60
- const chain = "Algorand " ;
51
+ const chain = "Sepolia " ;
61
52
const destChain = wh . getChain ( chain ) ;
62
53
const { signer } = await getSigner ( destChain ) ;
63
54
@@ -94,4 +85,4 @@ import { getSigner } from "./helpers/index.js";
94
85
}
95
86
96
87
console . log ( "Wrapped: " , await waitForIt ( ) ) ;
97
- } ) ( ) ;
88
+ } ) ( ) . catch ( ( e ) => console . error ( e ) ) ;
0 commit comments