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:
Gavin Wood
2019-10-28 16:26:24 +01:00
committed by GitHub
parent b1f9b1ad07
commit fd7640e097
5 changed files with 91 additions and 93 deletions
+4 -4
View File
@@ -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
)?);