Skip to content
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

fix(ExtrinsicPayload): decode assetId with and without option #6037

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

carlosala
Copy link
Contributor

@carlosala carlosala commented Nov 25, 2024

#5968 introduced an unexpected breaking change since, at the moment, the ExtrinsicPayload type can only parse hex assetId with the Option byte. This PR addresses it, making it backwards compatible, and now all ways (hex with and without option, PJS object, and number) are supported.
This should fix as well #6032.
I'm truly sorry about the confusion I might have created :(
Thanks!

Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

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

Thanks for the PR - much appreciated.

Just one comment!

packages/types/src/extrinsic/ExtrinsicPayload.spec.ts Outdated Show resolved Hide resolved
Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

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

👍 Thanks so much 🚀

@TarikGul TarikGul merged commit 7a2da0c into polkadot-js:master Nov 25, 2024
4 checks passed
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants