Skip to content

Commit

Permalink
chore: only delay bridge tx on linea if there was an approval
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed Dec 20, 2024
1 parent d57eda1 commit 40994f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/pages/bridge/hooks/useSubmitBridgeTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export default function useSubmitBridgeTransaction() {
CHAIN_IDS.LINEA_GOERLI,
CHAIN_IDS.LINEA_SEPOLIA,
] as Hex[]
).includes(srcChainId)
).includes(srcChainId) &&
quoteResponse?.approval
) {
debugLog(
'Delaying submitting bridge tx to make Linea confirmation more likely',
Expand Down

0 comments on commit 40994f4

Please sign in to comment.