Skip to content

Commit c861d69

Browse files
bmzigpxrl
andauthored
Apply suggestions from code review
Co-authored-by: Paul <[email protected]>
1 parent a878a6d commit c861d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/finalizer/utils/cctp/svm/l2Tol1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function bridgeTokensToHubPool(
3434
solanaClient: SVMSpokePoolClient,
3535
signer: KeyPairSigner,
3636
logger: winston.Logger,
37-
hubChainId = 1
37+
hubChainId = CHAIN_IDs.MAINNET
3838
): Promise<{ message: string; signature?: string }> {
3939
const svmProvider = solanaClient.svmEventsClient.getRpc();
4040
const svmSpoke = solanaClient.spokePoolAddress;
@@ -105,7 +105,7 @@ export async function bridgeTokensToHubPool(
105105
appendTransactionMessageInstructions([bridgeTokensToHubPoolIx], tx)
106106
);
107107
const formatUsdc = createFormatFunction(2, 4, false, 6);
108-
if ((process.env["SEND_TRANSACTIONS"] ?? "false") === "true") {
108+
if ((process.env.SEND_TRANSACTIONS === "true") {
109109
const withdrawSignature = await sendAndConfirmSolanaTransaction(bridgeTokensToHubPoolTx, signer, svmProvider);
110110
return {
111111
message: `Withdrew ${formatUsdc(pendingWithdrawAmount.toString())} USDC from Solana to the hub pool.`,

0 commit comments

Comments
 (0)