Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

add check for locked zero on locked value in pallet-xcm #7220

Closed
wants to merge 3 commits into from

Conversation

vstam1
Copy link
Contributor

@vstam1 vstam1 commented May 12, 2023

Currently the set_lock function is not working when the locked amount is 0 and we use the implementation of the balances pallet as the set_lock implementation of the balances pallet is no-op when the locked amount is 0. So we remove the lock if the locked value is 0, meaning that there is no lock anymore in the LockedFungibles storage for this sovereign_account.

@vstam1 vstam1 added A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. labels May 12, 2023
@KiChjang KiChjang added B0-silent Changes should not be mentioned in any release notes D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels May 12, 2023
@vstam1
Copy link
Contributor Author

vstam1 commented May 15, 2023

Gets fixed by paritytech/substrate#14144

@vstam1 vstam1 closed this May 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants