From 66bc3591c2566362499fd85145737c72a1a2d022 Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Sat, 12 Aug 2023 00:25:11 -0300 Subject: [PATCH] [skip ci] - run prettier --- .../tbtc/solana/WormholeGateway.v2.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/assets/providers/tbtc/solana/WormholeGateway.v2.ts b/src/assets/providers/tbtc/solana/WormholeGateway.v2.ts index 27163c4b1..b111b648c 100644 --- a/src/assets/providers/tbtc/solana/WormholeGateway.v2.ts +++ b/src/assets/providers/tbtc/solana/WormholeGateway.v2.ts @@ -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,