File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/finalizer/utils/cctp/svm Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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.` ,
You can’t perform that action at this time.
0 commit comments