Skip to content

fix(abstract-eth): decode ERC20 calldata in consolidation base address#8797

Open
HimanshuS2212 wants to merge 1 commit into
masterfrom
COINS-208
Open

fix(abstract-eth): decode ERC20 calldata in consolidation base address#8797
HimanshuS2212 wants to merge 1 commit into
masterfrom
COINS-208

Conversation

@HimanshuS2212
Copy link
Copy Markdown
Contributor

@HimanshuS2212 HimanshuS2212 commented May 19, 2026

Ticket: COINS-208

The consolidationToBaseAddress check compared txJson.to against the wallet base address. For ERC20 token consolidations on v6 TSS wallets, txJson.to is the token contract address, not the actual recipient. The real recipient is encoded in the transfer(address,uint256) calldata. This caused a TxIntentMismatchRecipientError for all ERC20 token consolidations on v6 TSS wallets, blocking users from consolidating. The fix decodes the 0xa9059cbb calldata to extract the actual transfer recipient before comparing against the base address, using the same pattern already present in the non-consolidation transfer verification block.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 19, 2026

COINS-208

@HimanshuS2212 HimanshuS2212 marked this pull request as ready for review May 19, 2026 04:50
@HimanshuS2212 HimanshuS2212 requested a review from a team as a code owner May 19, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant