-
Notifications
You must be signed in to change notification settings - Fork 709
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 region nonfungible implementation #5067
Conversation
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.
Oof, good catch. Would be nice to add a test to interlace or partition->burn->mint and then check the mask is identical after minting. This PR should also be backported to v1.14
I added two new tests. They don't explicitly check for the coremask, but if the coremask changed when minting, the region returned would be the old one which still has the owner set to |
Looks good, just needs a prdoc. I just realised it's breaking as |
But it is not exposed as an extrinsic; it can only be accessed from the runtime code, right? |
Co-authored-by: Dónal Murray <[email protected]>
The CI pipeline was cancelled due to failure one of the required jobs. |
The semver CI check should be fixed no master, please try again after merging it in. |
cumulus/parachains/runtimes/coretime/coretime-rococo/src/lib.rs
Outdated
Show resolved
Hide resolved
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, just nits with import (can be also ignored)
cumulus/parachains/runtimes/coretime/coretime-rococo/src/lib.rs
Outdated
Show resolved
Hide resolved
cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs
Outdated
Show resolved
Hide resolved
cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Branislav Kontur <[email protected]>
Co-authored-by: Branislav Kontur <[email protected]>
Co-authored-by: Branislav Kontur <[email protected]>
Co-authored-by: Branislav Kontur <[email protected]>
The semver check was failing. Maybe merging with the master branch again will fix it? |
c39cc33
The problem with the current implementation is that minting will cause the region coremask to be set to `Coremask::complete` regardless of the actual coremask. This PR fixes that. More details about the nonfungible implementation can be found here: paritytech#3455 --------- Co-authored-by: Dónal Murray <[email protected]> Co-authored-by: Branislav Kontur <[email protected]> Co-authored-by: Francisco Aguirre <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]>
The problem with the current implementation is that minting will cause the region coremask to be set to
Coremask::complete
regardless of the actual coremask.This PR fixes that.
More details about the nonfungible implementation can be found here: #3455