Skip to content

Conversation

@dpkjnr
Copy link
Contributor

@dpkjnr dpkjnr commented Nov 19, 2025

Ticket: COIN-6431

@dpkjnr dpkjnr force-pushed the fix-eth-tss-consolidation-validation branch from ab1599d to ba1e828 Compare November 19, 2025 06:34
@dpkjnr dpkjnr force-pushed the fix-eth-tss-consolidation-validation branch 3 times, most recently from fd366e4 to ab25b8f Compare December 3, 2025 05:37
@dpkjnr dpkjnr marked this pull request as ready for review December 3, 2025 06:07
@dpkjnr dpkjnr requested a review from a team as a code owner December 3, 2025 06:07
nvjsr
nvjsr previously approved these changes Dec 3, 2025
Copy link
Contributor

@nvjsr nvjsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for TSS wallet consolidation transaction validation for Ethereum-like coins. It extends the transaction verification logic to properly identify and handle consolidation transactions in multiple ways (via consolidateId, type: 'consolidate', etc.) and implements address verification to ensure consolidation transactions send funds to the wallet's base address.

Key changes:

  • Added 'consolidate' to the list of valid transaction types that don't require recipients
  • Added txPrebuild?.consolidateId as an additional check for identifying consolidation transactions
  • Implemented consolidationToBaseAddress verification logic to validate the transaction recipient matches the wallet's base address

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
modules/abstract-eth/src/abstractEthLikeNewCoins.ts Added validation logic to accept consolidation transactions and verify they send to the correct base address
modules/sdk-coin-eth/test/unit/eth.ts Added test cases to verify TSS consolidation transactions are accepted with various consolidation indicators

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dpkjnr dpkjnr force-pushed the fix-eth-tss-consolidation-validation branch from ab25b8f to 45f4f53 Compare December 3, 2025 10:39
@dpkjnr dpkjnr merged commit 9d42a20 into master Dec 3, 2025
14 checks passed
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.

3 participants