fix: debug trace bridge call matching#1605
Conversation
|
Claude finished @arnaubennassar's task in 1m 38s —— View job Code Review Complete ✓🚀 What's NewThis PR fixes debug trace call matching in 🐛 Bug Fixes
📋 Config UpdatesNone
|
|
## 🔄 Changes Summary - Backports `5e75ba1a` (`fix: debug trace bridge call matching (#1605)`) to `release/0.8`. - Filters debug trace matching to actual `CALL` frames in `bridgesync`, avoiding calldata extraction from `DELEGATECALL`, `STATICCALL`, `CALLCODE`, or missing-type frames. - Adds call tracer frame type constants and includes the `type` field in decoded trace calls. - Updates the applicable `bridgesync` tests for call-frame filtering and mocked debug traces. ##⚠️ Breaking Changes - 🛠️ **Config**: None - 🔌 **API/CLI**: None - 🗑️ **Deprecated Features**: None ## 📋 Config Updates - 🧾 **Diff/Config snippet**: None ## ✅ Testing - 🤖 **Automatic**: `go test ./bridgesync -run 'TestFindCall|TestBackfillTxnSender|TestClaimCalldata' -count=1`\n- 🤖 **Automatic**: `go test ./bridgesync` was also run, but failed on the `release/0.8` branch after a long package run; the relevant touched tests above passed.\n- 🖱️ **Manual**: Not run\n\n## 🐞 Issues\n- None\n\n## 🔗 Related PRs\n- Backport of #1605\n\n## 📝 Notes\n- `claimsync` changes from the original squash commit are not present in this backport because `release/0.8` does not contain the `claimsync` downloader files changed by #1605.
## 🔄 Changes Summary - Backports `5e75ba1a` (`fix: debug trace bridge call matching (#1605)`) to `release/0.10`. - Filters debug trace matching to actual `CALL` frames in `bridgesync` and `claimsync`, avoiding calldata extraction from `DELEGATECALL`, `STATICCALL`, `CALLCODE`, or missing-type frames. - Adds call tracer frame type constants and includes the `type` field in decoded trace calls. - Makes claim calldata extraction reject ambiguous distinct matching bridge calls while accepting duplicate identical matches. - Extends bridge and claim sync tests for call-frame filtering, ambiguous calldata, and mocked debug traces. ##⚠️ Breaking Changes - 🛠️ **Config**: None - 🔌 **API/CLI**: None - 🗑️ **Deprecated Features**: None ## 📋 Config Updates - 🧾 **Diff/Config snippet**: None ## ✅ Testing - 🤖 **Automatic**: `go test ./bridgesync ./claimsync` - 🖱️ **Manual**: Not run ## 🐞 Issues - None ## 🔗 Related PRs - Backport of #1605 ## 📝 Notes - Cherry-pick applied cleanly on `release/0.10`.



🔄 Changes Summary
CALLframes inbridgesyncandclaimsync, avoiding calldata extraction fromDELEGATECALL,STATICCALL,CALLCODE, or missing-type frames.typefield in decoded trace calls.📋 Config Updates
✅ Testing
go test ./bridgesync ./claimsync🐞 Issues
🔗 Related PRs
📝 Notes
CALLframes to the bridge as extraction candidates, preventing delegate-call calldata from being selected as if it were a direct bridge call.