fix:(cp-30138): skip blockaids validation for gas-included swaps cp-7.77.0#30140
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d71ed9b. Configure here.
d71ed9b to
c2738d7
Compare
c2738d7 to
8db17fe
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Direct impact: The SmokeSwap is selected as the primary tag because the change is in the Bridge quote data hook that drives swap/bridge flows. SmokeConfirmations is selected per SmokeSwap's tag description: "when selecting SmokeSwap, also select SmokeConfirmations (transaction confirmations are part of the flow)." No other tags are warranted — the change does not touch controllers, Engine, navigation, account management, network management, identity, snaps, browser, or any other shared infrastructure. The change is isolated to Bridge/Swap quote validation logic with a corresponding unit test. Performance Test Selection: |
|
The committed fixture schema is out of date. To update, comment: |
|
@metamaskbot update-mobile-fixture |
|
🔄 Fixture update started. Running workflow from branch |
|
❌ E2E fixture update failed.\n\nCommon causes:\n- CI workflow is still running — wait for 'Build iOS Apps' to complete\n- CI workflow was skipped — ensure your PR has iOS-impacting changes or use |
|
@metamaskbot update-mobile-fixture |
|
🔄 Fixture update started. Running workflow from branch |
|
❌ E2E fixture update failed.\n\nCommon causes:\n- CI workflow is still running — wait for 'Build iOS Apps' to complete\n- CI workflow was skipped — ensure your PR has iOS-impacting changes or use |




Description
Skip Blockaids validation for gas-included swaps
Changelog
CHANGELOG entry: null
Related issues
Fixes: #30138
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Changes when Blockaid transaction validation runs for Solana bridge quotes, which could affect security checks if the
gasIncludedsignal is incorrect. Scope is small and covered by a targeted unit test.Overview
Updates
useBridgeQuoteDatato skip Blockaid (validateBridgeTx) validation for Solana/Solana→EVM quotes when the active quote is markedgasIncluded, clearing any priorblockaidErrorinstead.Adds a unit test ensuring
validateBridgeTxis not invoked forgasIncludedSolana quotes and that no Blockaid error is surfaced.Reviewed by Cursor Bugbot for commit 8db17fe. Bugbot is set up for automated code reviews on this repo. Configure here.