From 083f7b606eb147ab5e3566566c0f55d3800e2a71 Mon Sep 17 00:00:00 2001 From: chenwei Date: Sat, 4 Jul 2020 10:36:36 +0800 Subject: [PATCH] Allow balances local refcount --- runtime/common/src/claims.rs | 1 + runtime/common/src/crowdfund.rs | 1 + runtime/common/src/parachains.rs | 1 + runtime/common/src/registrar.rs | 1 + runtime/common/src/slots.rs | 1 + runtime/kusama/src/lib.rs | 1 + runtime/polkadot/src/lib.rs | 1 + runtime/test-runtime/src/lib.rs | 1 + runtime/westend/src/lib.rs | 1 + 9 files changed, 9 insertions(+) diff --git a/runtime/common/src/claims.rs b/runtime/common/src/claims.rs index 8811e04943d2..e5442db76b55 100644 --- a/runtime/common/src/claims.rs +++ b/runtime/common/src/claims.rs @@ -704,6 +704,7 @@ mod tests { type DustRemoval = (); type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } impl vesting::Trait for Test { diff --git a/runtime/common/src/crowdfund.rs b/runtime/common/src/crowdfund.rs index 15160f7fc095..a850acd8a13f 100644 --- a/runtime/common/src/crowdfund.rs +++ b/runtime/common/src/crowdfund.rs @@ -627,6 +627,7 @@ mod tests { type DustRemoval = (); type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } parameter_types! { diff --git a/runtime/common/src/parachains.rs b/runtime/common/src/parachains.rs index 0c353a45f96c..f502567d0596 100644 --- a/runtime/common/src/parachains.rs +++ b/runtime/common/src/parachains.rs @@ -1846,6 +1846,7 @@ mod tests { type Event = (); type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } pallet_staking_reward_curve::build! { diff --git a/runtime/common/src/registrar.rs b/runtime/common/src/registrar.rs index 248371d256c5..94fa037ede26 100644 --- a/runtime/common/src/registrar.rs +++ b/runtime/common/src/registrar.rs @@ -766,6 +766,7 @@ mod tests { type Event = (); type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } parameter_types!{ diff --git a/runtime/common/src/slots.rs b/runtime/common/src/slots.rs index b3140278f9e5..6fc73f6b6c30 100644 --- a/runtime/common/src/slots.rs +++ b/runtime/common/src/slots.rs @@ -945,6 +945,7 @@ mod tests { type DustRemoval = (); type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } thread_local! { diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index f9ba963f0407..9d3ee48e563d 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -200,6 +200,7 @@ impl balances::Trait for Runtime { type Event = Event; type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } parameter_types! { diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index cd63dfce0221..bf216f42aabd 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -231,6 +231,7 @@ impl balances::Trait for Runtime { type Event = Event; type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } parameter_types! { diff --git a/runtime/test-runtime/src/lib.rs b/runtime/test-runtime/src/lib.rs index 84bf4873823f..6bc7b9d3a02d 100644 --- a/runtime/test-runtime/src/lib.rs +++ b/runtime/test-runtime/src/lib.rs @@ -198,6 +198,7 @@ impl balances::Trait for Runtime { type Event = Event; type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } parameter_types! { diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 3029c96d6ae0..3fbea36e85b1 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -182,6 +182,7 @@ impl balances::Trait for Runtime { type Event = Event; type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + type AccountRef = balances::SystemAccountRef; } parameter_types! {