@@ -85,7 +85,7 @@ const connection = new anchor.web3.Connection(
85
85
"confirmed"
86
86
) ;
87
87
88
- // Make sure we're using the exact same Connection obj for rpc
88
+ // make sure we're using the exact same Connection obj for rpc
89
89
const ctx : ChainContext < "Devnet" , "Solana" > = w
90
90
. getPlatform ( "Solana" )
91
91
. getChain ( "Solana" , connection ) ;
@@ -128,7 +128,6 @@ describe("example-native-token-transfers", () => {
128
128
let ntt : SolanaNtt < "Devnet" , "Solana" > ;
129
129
let signer : Signer ;
130
130
let sender : AccountAddress < "Solana" > ;
131
- let multisig : anchor . web3 . PublicKey ;
132
131
let tokenAddress : string ;
133
132
let multisigTokenAuthority : anchor . web3 . PublicKey ;
134
133
@@ -201,7 +200,7 @@ describe("example-native-token-transfers", () => {
201
200
) ;
202
201
203
202
tokenAddress = mint . publicKey . toBase58 ( ) ;
204
- // Create our contract client
203
+ // create our contract client
205
204
ntt = new SolanaNtt (
206
205
"Devnet" ,
207
206
"Solana" ,
@@ -264,14 +263,14 @@ describe("example-native-token-transfers", () => {
264
263
} ) ;
265
264
await signSendWait ( ctx , registerTxs , signer ) ;
266
265
267
- // Set Wormhole xcvr peer
266
+ // set Wormhole xcvr peer
268
267
const setXcvrPeerTxs = ntt . setWormholeTransceiverPeer (
269
268
remoteXcvr ,
270
269
sender
271
270
) ;
272
271
await signSendWait ( ctx , setXcvrPeerTxs , signer ) ;
273
272
274
- // Set manager peer
273
+ // set manager peer
275
274
const setPeerTxs = ntt . setPeer ( remoteMgr , 18 , 1000000n , sender ) ;
276
275
await signSendWait ( ctx , setPeerTxs , signer ) ;
277
276
} catch ( e ) {
@@ -308,7 +307,7 @@ describe("example-native-token-transfers", () => {
308
307
] ) ;
309
308
} ) ;
310
309
311
- test ( "Can send tokens" , async ( ) => {
310
+ it ( "Can send tokens" , async ( ) => {
312
311
const amount = 100000n ;
313
312
const sender = Wormhole . parseAddress ( "Solana" , signer . address ( ) ) ;
314
313
@@ -769,8 +768,8 @@ describe("example-native-token-transfers", () => {
769
768
} ,
770
769
} ;
771
770
772
- describe ( "ABI Versions Test" , function ( ) {
773
- test ( "It initializes from Rpc" , async function ( ) {
771
+ describe ( "ABI Versions Test" , ( ) => {
772
+ test ( "It initializes from Rpc" , async ( ) => {
774
773
const ntt = await SolanaNtt . fromRpc ( connection , {
775
774
Solana : {
776
775
...ctx . config ,
@@ -783,15 +782,15 @@ describe("example-native-token-transfers", () => {
783
782
expect ( ntt ) . toBeTruthy ( ) ;
784
783
} ) ;
785
784
786
- test ( "It initializes from constructor" , async function ( ) {
785
+ test ( "It initializes from constructor" , async ( ) => {
787
786
const ntt = new SolanaNtt ( "Devnet" , "Solana" , connection , {
788
787
...ctx . config . contracts ,
789
788
...{ ntt : overrides [ "Solana" ] } ,
790
789
} ) ;
791
790
expect ( ntt ) . toBeTruthy ( ) ;
792
791
} ) ;
793
792
794
- test ( "It gets the correct version" , async function ( ) {
793
+ test ( "It gets the correct version" , async ( ) => {
795
794
const version = await SolanaNtt . getVersion (
796
795
connection ,
797
796
{ ntt : overrides [ "Solana" ] } ,
@@ -800,7 +799,7 @@ describe("example-native-token-transfers", () => {
800
799
expect ( version ) . toBe ( "3.0.0" ) ;
801
800
} ) ;
802
801
803
- test ( "It initializes using `emitterAccount` as transceiver address" , async function ( ) {
802
+ test ( "It initializes using `emitterAccount` as transceiver address" , async ( ) => {
804
803
const overrideEmitter : ( typeof overrides ) [ "Solana" ] = JSON . parse (
805
804
JSON . stringify ( overrides [ "Solana" ] )
806
805
) ;
@@ -815,7 +814,7 @@ describe("example-native-token-transfers", () => {
815
814
expect ( ntt ) . toBeTruthy ( ) ;
816
815
} ) ;
817
816
818
- test ( "It gets the correct transceiver type" , async function ( ) {
817
+ test ( "It gets the correct transceiver type" , async ( ) => {
819
818
const ntt = new SolanaNtt ( "Devnet" , "Solana" , connection , {
820
819
...ctx . config . contracts ,
821
820
...{ ntt : overrides [ "Solana" ] } ,
0 commit comments