Introduce add_memo for Crowdloans (#2728)

* Add memo, but don't use it yet

* add_memo

* add weights

* Update lib.rs

* Update crowdloan.rs

* add event
This commit is contained in:
Shawn Tabrizi
2021-03-27 17:36:48 +01:00
committed by GitHub
parent c503fbc2a0
commit 7f6ef6fb7b
3 changed files with 87 additions and 13 deletions
@@ -216,7 +216,7 @@ parameter_types! {
pub const MinContribution: Balance = 1;
pub const RetirementPeriod: BlockNumber = 10;
pub const RemoveKeysLimit: u32 = 100;
pub const MaxMemoLength: u8 = 32;
}
impl crowdloan::Config for Test {
@@ -229,6 +229,7 @@ impl crowdloan::Config for Test {
type RemoveKeysLimit = RemoveKeysLimit;
type Registrar = Registrar;
type Auctioneer = Auctions;
type MaxMemoLength = MaxMemoLength;
type WeightInfo = crate::crowdloan::TestWeightInfo;
}