Unverified Commit c465d249 authored by Gavin Wood's avatar Gavin Wood Committed by GitHub
Browse files

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.
parent f35a4db4
Pipeline #55273 passed with stages
in 26 minutes and 54 seconds
This diff is collapsed.
......@@ -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
)?);
......
......@@ -540,7 +540,7 @@ impl nicks::Trait for Runtime {
type Currency = Balances;
type ReservationFee = ReservationFee;
type Slashed = Treasury;
type KillOrigin = collective::EnsureMember<AccountId, CouncilCollective>;
type ForceOrigin = collective::EnsureMember<AccountId, CouncilCollective>;
type MinLength = MinLength;
type MaxLength = MaxLength;
}
......
......@@ -94,7 +94,7 @@ impl<AccountId, T: Currency<AccountId>> ParachainCurrency<AccountId> for T where
let _ = T::withdraw(
&para_account,
amount.into(),
WithdrawReason::Fee,
WithdrawReason::Fee.into(),
ExistenceRequirement::KeepAlive,
)?;
......
......@@ -506,7 +506,7 @@ impl<T: Trait> Module<T> {
if T::Currency::withdraw(
&bidder.who,
amount,
WithdrawReason::Fee,
WithdrawReason::Fee.into(),
ExistenceRequirement::AllowDeath
).is_err() {
continue;
......@@ -543,7 +543,7 @@ impl<T: Trait> Module<T> {
if T::Currency::withdraw(
&para_id.into_account(),
additional,
WithdrawReason::Fee,
WithdrawReason::Fee.into(),
ExistenceRequirement::AllowDeath
).is_err() {
continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment