Skip to content

Conversation

@danielpeng1
Copy link
Contributor

  • Updated DOT verifyTransaction method to include wallet base address verification for consolidation transactions.
  • Added tests to validate successful and failed consolidation transactions.

Ticket: WP-5728

@danielpeng1 danielpeng1 self-assigned this Nov 24, 2025
@danielpeng1 danielpeng1 marked this pull request as ready for review November 24, 2025 16:25
@danielpeng1 danielpeng1 requested a review from a team as a code owner November 24, 2025 16:25
}

const factory = this.getBuilder();
const txBuilder = factory.from(txPrebuild.txHex) as any;
Copy link
Contributor

Choose a reason for hiding this comment

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

let's try to update this to the appropriate type if possible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

nvjsr
nvjsr previously approved these changes Nov 25, 2025
nvrakesh06
nvrakesh06 previously approved these changes Nov 25, 2025
Ranjna-G
Ranjna-G previously approved these changes Nov 26, 2025
Copy link
Contributor

@Ranjna-G Ranjna-G left a comment

Choose a reason for hiding this comment

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

lgtm

mohd-kashif
mohd-kashif previously approved these changes Nov 26, 2025
Copy link
Contributor Author

@danielpeng1 danielpeng1 left a comment

Choose a reason for hiding this comment

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

conflicts due to revert

);
}

async verifyTransaction(params: VerifyTransactionOptions): Promise<boolean> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dot verifyTransaction has been reverted here #7634

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#7652 revert of revert here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I looked at the JSON for a DOT wallet and the base address for DOT is called rootAddress so I use that to retrieve the address here. I also typed the txBuilder, changed the generic errors to be TxIntentMismatchRecipientError where appropriate, and I rebased those changes on top of the revert of revert PR.

@danielpeng1 danielpeng1 marked this pull request as draft November 26, 2025 16:33
@danielpeng1 danielpeng1 force-pushed the WP-5728/fix/dot-consolidation-blind-sign branch from add4e11 to b72f323 Compare December 1, 2025 19:42
@danielpeng1 danielpeng1 marked this pull request as ready for review December 1, 2025 20:31
@danielpeng1 danielpeng1 requested a review from Ranjna-G December 1, 2025 20:38
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.

7 participants