Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comments and fmt
  • Loading branch information
vstam1 committed May 12, 2023
commit 5b88a0aea42a68d7fb5685ab8a646292c1cbb49c
5 changes: 4 additions & 1 deletion xcm/pallet-xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,10 @@ impl<T: Config> xcm_executor::traits::Enact for UnlockTicket<T> {
}
LockedFungibles::<T>::insert(&self.sovereign_account, locks);
let reasons = WithdrawReasons::all();


// A locked value of zero means we do not have any outstanding locks anymore
// in the LockedFungibles storage for this sovereign account.
// We can then remove the `xcmlk` lock from this account.
if locked.is_zero() {
T::Currency::remove_lock(*b"py/xcmlk", &self.sovereign_account);
} else {
Expand Down