From 25bbcfd72403ee93a98cfcc33b2dfd8c0c3a3e71 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Thu, 20 May 2021 16:41:08 -0400 Subject: [PATCH] Add `OnSwap` hook for crowdloans. (#3017) --- polkadot/runtime/kusama/src/lib.rs | 2 +- polkadot/runtime/westend/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index d56165c170..b525f3dfad 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -1087,7 +1087,7 @@ impl paras_registrar::Config for Runtime { type Event = Event; type Origin = Origin; type Currency = Balances; - type OnSwap = Slots; + type OnSwap = (Crowdloan, Slots); type ParaDeposit = ParaDeposit; type DataDepositPerByte = DataDepositPerByte; type MaxCodeSize = MaxCodeSize; diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index 1ce3af0970..fd703ec15d 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -772,7 +772,7 @@ impl paras_registrar::Config for Runtime { type Event = Event; type Origin = Origin; type Currency = Balances; - type OnSwap = Slots; + type OnSwap = (Crowdloan, Slots); type ParaDeposit = ParaDeposit; type DataDepositPerByte = DataDepositPerByte; type MaxCodeSize = MaxCodeSize;