Skip to content

Commit

Permalink
[skip ci] - run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Aug 12, 2023
1 parent bf2ffcf commit 66bc359
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/assets/providers/tbtc/solana/WormholeGateway.v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,24 +218,24 @@ export function newThresholdWormholeGateway(
custodianData.wrappedTbtcMint as string
);
const recipientTokenKey = await Token.getAssociatedTokenAddress(
ASSOCIATED_TOKEN_PROGRAM_ID,
TOKEN_PROGRAM_ID,
tbtcMint,
recipient
ASSOCIATED_TOKEN_PROGRAM_ID,
TOKEN_PROGRAM_ID,
tbtcMint,
recipient
);
const transaction = new Transaction();
const recipientToken = await connection.getAccountInfo(recipientTokenKey);
console.log(recipientToken, recipientTokenKey.toBase58());
if (!recipientToken) {
const recipientTokenAtaIx = Token.createAssociatedTokenAccountInstruction(
ASSOCIATED_TOKEN_PROGRAM_ID,
TOKEN_PROGRAM_ID,
tbtcMint,
recipientTokenKey,
recipient, // owner
recipient // payer
);
transaction.add(recipientTokenAtaIx);
const recipientTokenAtaIx = Token.createAssociatedTokenAccountInstruction(
ASSOCIATED_TOKEN_PROGRAM_ID,
TOKEN_PROGRAM_ID,
tbtcMint,
recipientTokenKey,
recipient, // owner
recipient // payer
);
transaction.add(recipientTokenAtaIx);
}
const tokenBridgeWrappedAsset = tokenBridge.deriveWrappedMetaKey(
TOKEN_BRIDGE_PROGRAM_ID,
Expand Down

0 comments on commit 66bc359

Please sign in to comment.