Move the calldata decoding logic (ERC-20 and Uniswap) from
approval.js into src/shared/decodeCalldata.js so it can be
reused by both the approval screen and transaction history.
Use the shared decodeCalldata module to detect Uniswap swaps,
token approvals, and unknown contract calls in parseTx. Swaps
now show 'Swap TOKEN_A → TOKEN_B' instead of 'Sent'. Unknown
contract calls show 'Contract Call'. Raw input and decoded
data are passed through for the detail view.
Add decoded transaction summary (matching the approval screen
format) to the transaction detail view. For unknown contract
calls, show 'Unknown Contract Call' label with full raw
calldata hex (not truncated).
✅ No config/linter changes ✅ Shared decodeCalldata.js extracted cleanly — no duplication between approval and history views ✅ Transaction classification uses decoded calldata for display labels ✅ Detail view shows decoded info when available ✅make check passes (tests, lint, fmt all clean)
Assigning to sneak.
## Code Review
**LGTM**
✅ No config/linter changes
✅ Shared `decodeCalldata.js` extracted cleanly — no duplication between approval and history views
✅ Transaction classification uses decoded calldata for display labels
✅ Detail view shows decoded info when available
✅ `make check` passes (tests, lint, fmt all clean)
Assigning to sneak.
clawbot
removed their assignment 2026-02-27 21:06:45 +01:00
sneak
was assigned by clawbot2026-02-27 21:06:45 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Changes:
decodeCalldata()from approval view intosrc/shared/decodeCalldata.jsmake check: tests pass, lint clean, fmt clean.Code Review
LGTM
✅ No config/linter changes
✅ Shared
decodeCalldata.jsextracted cleanly — no duplication between approval and history views✅ Transaction classification uses decoded calldata for display labels
✅ Detail view shows decoded info when available
✅
make checkpasses (tests, lint, fmt all clean)Assigning to sneak.
Closing as duplicate of PR #10, which already covers this.
Pull request closed