mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 19:05:41 +00:00
Backport fix lock (#507)
* Fix locking, from an updated Substrate (#506) * Fix locking, from an updated Substrate * Bump runtime version * Lock file. * Bump version and extra fix.
This commit is contained in:
@@ -207,7 +207,7 @@ decl_module! {
|
||||
let imb = T::Currency::withdraw(
|
||||
&owner,
|
||||
deposit,
|
||||
WithdrawReason::Transfer,
|
||||
WithdrawReason::Transfer.into(),
|
||||
ExistenceRequirement::AllowDeath,
|
||||
)?;
|
||||
|
||||
@@ -378,7 +378,7 @@ decl_module! {
|
||||
let _ = T::Currency::resolve_into_existing(&who, T::Currency::withdraw(
|
||||
&Self::fund_account_id(index),
|
||||
balance,
|
||||
WithdrawReason::Transfer,
|
||||
WithdrawReason::Transfer.into(),
|
||||
ExistenceRequirement::AllowDeath
|
||||
)?);
|
||||
|
||||
@@ -407,14 +407,14 @@ decl_module! {
|
||||
let _ = T::Currency::resolve_into_existing(&fund.owner, T::Currency::withdraw(
|
||||
&account,
|
||||
fund.deposit,
|
||||
WithdrawReason::Transfer,
|
||||
WithdrawReason::Transfer.into(),
|
||||
ExistenceRequirement::AllowDeath
|
||||
)?);
|
||||
|
||||
T::OrphanedFunds::on_unbalanced(T::Currency::withdraw(
|
||||
&account,
|
||||
fund.raised,
|
||||
WithdrawReason::Transfer,
|
||||
WithdrawReason::Transfer.into(),
|
||||
ExistenceRequirement::AllowDeath
|
||||
)?);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user