File tree 1 file changed +6
-2
lines changed
database/src/token_bridge
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
contracts ,
12
12
encoding ,
13
13
} from '@wormhole-foundation/sdk-base' ;
14
- import { AptosClient } from 'aptos' ;
14
+ import { Aptos , AptosConfig , Network as AptosNetwork } from '@ aptos-labs/ts-sdk ' ;
15
15
import { connect } from 'near-api-js' ;
16
16
import { AptosTokenBridge } from '@wormhole-foundation/sdk-aptos-tokenbridge' ;
17
17
import { wormhole } from '@wormhole-foundation/sdk' ;
@@ -60,7 +60,11 @@ export const getNativeAddress = async (
60
60
) ;
61
61
} else if ( tokenChain === chainToChainId ( 'Aptos' ) ) {
62
62
const wh = await wormhole ( 'Mainnet' , [ aptos ] ) ;
63
- const client = new AptosClient ( 'https://fullnode.mainnet.aptoslabs.com' ) ;
63
+ const config = new AptosConfig ( {
64
+ fullnode : 'https://fullnode.mainnet.aptoslabs.com' ,
65
+ network : AptosNetwork . MAINNET ,
66
+ } ) ;
67
+ const client = new Aptos ( ) ;
64
68
const contracts = wh . getContracts ( 'Aptos' ) ;
65
69
if ( ! contracts ) {
66
70
return null ;
You can’t perform that action at this time.
0 commit comments