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

Breaking change by v1.3.4 #5085

Open
wliyongfeng opened this issue Nov 21, 2024 · 0 comments
Open

Breaking change by v1.3.4 #5085

wliyongfeng opened this issue Nov 21, 2024 · 0 comments

Comments

@wliyongfeng
Copy link
Member

img_v3_02gr_c2ed436b-5814-44c3-940b-7f766fd20acg

Hello,

Following the execution of the v1.3.4 upgrade, a migration of Asset Hub Polkadot’s and Asset Hub Kusama's foreign assets type from v3 to v4 locations was introduced.

🚨 Breaking change: 🚨
The following PR changed the Interior.X1 type from Junction to [Junction;1]. While the transaction encoding is the same, it breaks the API of PolkadotJS.

We recommend that all ecosystem builders that are using PJS API upgrade their codebase to support the API change. That is, if you are interacting with Asset Hub foreign assets (or any v4 location for that matter), you should update Interior.X1 to be an array with only one item.

For those of you using PAPI, there's no need to change anything, as the library itself internally changed the type back from an array to a single element, making it backwards compatible.

Many thanks.

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

No branches or pull requests

1 participant