From a0f86610d3296b1112384c16e25aa5bd28218b23 Mon Sep 17 00:00:00 2001 From: echevrier Date: Tue, 21 Sep 2021 09:32:09 +0200 Subject: [PATCH 1/2] Update pallet config to allow proposal acceptance from sudo --- runtime/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 3e11215..4954231 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -354,10 +354,10 @@ impl pallet_teerex::Config for Runtime { parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(5); pub const ProposalBondMinimum: Balance = 100 * MILLITEER; - pub const SpendPeriod: BlockNumber = 24 * DAYS; + pub const SpendPeriod: BlockNumber = 1 * MINUTES; //6* DAYS pub const Burn: Permill = Permill::from_percent(1); pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry"); - pub const MaxApprovals: u32 = 0; //100 + pub const MaxApprovals: u32 = 10; } type RootOrigin = EnsureRoot; @@ -369,8 +369,8 @@ impl pallet_treasury::Config for Runtime { type RejectOrigin = RootOrigin; type Event = Event; type OnSlash = (); //No proposal - type ProposalBond = (); //No proposal - type ProposalBondMinimum = (); //No proposal + type ProposalBond = ProposalBond; //No proposal + type ProposalBondMinimum = ProposalBondMinimum; //No proposal type SpendPeriod = SpendPeriod; //Cannot be 0: Error: Thread 'tokio-runtime-worker' panicked at 'attempt to calculate the remainder with a divisor of zero type Burn = (); //No burn type BurnDestination = (); //No burn From 8c5fcef779682bbe3faae2805821e6045d0aca06 Mon Sep 17 00:00:00 2001 From: echevrier Date: Tue, 21 Sep 2021 09:33:37 +0200 Subject: [PATCH 2/2] Update pallet config to allow proposal acceptance from sudo --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 4954231..6c7dfc8 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -354,7 +354,7 @@ impl pallet_teerex::Config for Runtime { parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(5); pub const ProposalBondMinimum: Balance = 100 * MILLITEER; - pub const SpendPeriod: BlockNumber = 1 * MINUTES; //6* DAYS + pub const SpendPeriod: BlockNumber = 6 * DAYS; pub const Burn: Permill = Permill::from_percent(1); pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry"); pub const MaxApprovals: u32 = 10;