-
Notifications
You must be signed in to change notification settings - Fork 299
fix(abstract-eth): add consolidate type and validation for TSS wallets #7554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ab1599d to
ba1e828
Compare
fd366e4 to
ab25b8f
Compare
nvjsr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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?.consolidateIdas an additional check for identifying consolidation transactions - Implemented
consolidationToBaseAddressverification 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.
ab25b8f to
45f4f53
Compare
Ticket: COIN-6431