fix: debug trace bridge call matching#1609
Conversation
## 🔄 Changes Summary - Filter debug trace call matching to actual `CALL` frames in `bridgesync` and `claimsync`, avoiding calldata extraction from `DELEGATECALL`, `STATICCALL`, `CALLCODE`, or missing-type frames. - Add call tracer frame type constants and include the `type` field in decoded trace calls. - Make claim calldata extraction reject ambiguous distinct matching bridge calls while accepting duplicate identical matches. - Extend bridge and claim sync tests for call-frame filtering, ambiguous calldata, and updated 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 - None ## 📝 Notes - The fix keeps debug trace traversal behavior but only treats canonical `CALL` frames to the bridge as extraction candidates, preventing delegate-call calldata from being selected as if it were a direct bridge call.
|
Claude finished @arnaubennassar's task in 1m 48s —— View job Code Review CompleteTasks
🚀 What's NewThis PR backports critical debug trace filtering logic to Key changes:
🐛 Bug FixesSecurity & Correctness Fix:
📋 Config UpdatesNone
|
|



🔄 Changes Summary
5e75ba1a(fix: debug trace bridge call matching (#1605)) torelease/0.10.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
release/0.10.