-
Notifications
You must be signed in to change notification settings - Fork 300
feat(sdk-coin-dot): enhance DOT tx verification for consolidation to base address #7610
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
base: master
Are you sure you want to change the base?
Conversation
modules/sdk-coin-dot/src/dot.ts
Outdated
| } | ||
|
|
||
| const factory = this.getBuilder(); | ||
| const txBuilder = factory.from(txPrebuild.txHex) as any; |
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.
let's try to update this to the appropriate type if possible
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.
done
Ranjna-G
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
danielpeng1
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.
conflicts due to revert
| ); | ||
| } | ||
|
|
||
| async verifyTransaction(params: VerifyTransactionOptions): Promise<boolean> { |
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.
dot verifyTransaction has been reverted here #7634
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.
#7652 revert of revert here
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.
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.
b72f323
add4e11 to
b72f323
Compare
verifyTransactionmethod to include wallet base address verification for consolidation transactions.Ticket: WP-5728