Skip to content

Commit

Permalink
Fix aptos
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Jan 14, 2025
1 parent bd7f5b7 commit 72dff3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions database/src/token_bridge/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
contracts,
encoding,
} from '@wormhole-foundation/sdk-base';
import { AptosClient } from 'aptos';
import { Aptos, AptosConfig, Network as AptosNetwork } from '@aptos-labs/ts-sdk';
import { connect } from 'near-api-js';
import { AptosTokenBridge } from '@wormhole-foundation/sdk-aptos-tokenbridge';
import { wormhole } from '@wormhole-foundation/sdk';
Expand Down Expand Up @@ -60,7 +60,11 @@ export const getNativeAddress = async (
);
} else if (tokenChain === chainToChainId('Aptos')) {
const wh = await wormhole('Mainnet', [aptos]);
const client = new AptosClient('https://fullnode.mainnet.aptoslabs.com');
const config = new AptosConfig({
fullnode: 'https://fullnode.mainnet.aptoslabs.com',
network: AptosNetwork.MAINNET,
});
const client = new Aptos();
const contracts = wh.getContracts('Aptos');
if (!contracts) {
return null;
Expand Down

0 comments on commit 72dff3f

Please sign in to comment.