Skip to content

feat: fixed verify transaction flow for tao and polyx#8883

Merged
bhavesh-prasad merged 1 commit into
masterfrom
CECHO-991
May 29, 2026
Merged

feat: fixed verify transaction flow for tao and polyx#8883
bhavesh-prasad merged 1 commit into
masterfrom
CECHO-991

Conversation

@bhavesh-prasad
Copy link
Copy Markdown
Contributor

ticket: CECHO-991

@bhavesh-prasad bhavesh-prasad requested a review from a team as a code owner May 28, 2026 11:46
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

CECHO-991

Copy link
Copy Markdown

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 updates Substrate-based coin transaction verification so TAO and POLYX transfers/sweeps are validated against the intended recipient (address, and amount for non-sweep transfers), and adds unit tests covering the expected success and failure cases.

Changes:

  • Strengthen verifyTransaction in the Substrate base implementation to validate recipient address/amount and add missing parameter guards.
  • Add TAO unit tests for verifyTransaction covering transfer, sweep, and guard/error cases.
  • Add POLYX unit tests for verifyTransaction covering transfer and guard/error cases.

Reviewed changes

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

File Description
modules/abstract-substrate/src/abstractSubstrateCoin.ts Implements recipient/amount verification for Substrate transfers and introduces guard checks for required prebuild params.
modules/sdk-coin-tao/test/unit/tao.ts Adds verifyTransaction unit coverage for TAO transfer and sweep flows plus guard cases.
modules/sdk-coin-polyx/test/unit/polyx.ts Adds verifyTransaction unit coverage for POLYX transfer flow plus guard cases.

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

Comment thread modules/abstract-substrate/src/abstractSubstrateCoin.ts
Comment thread modules/abstract-substrate/src/abstractSubstrateCoin.ts
Comment thread modules/abstract-substrate/src/abstractSubstrateCoin.ts
nvrakesh06
nvrakesh06 previously approved these changes May 29, 2026
ticket: CECHO-991
Signed-off-by: B.Prasad <bhaveshprasad584@bitgo.com>
@bhavesh-prasad bhavesh-prasad merged commit 27c3714 into master May 29, 2026
22 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