Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Enable treasury.spend by Root origin for Polkadot network before Gov2 (
Browse files Browse the repository at this point in the history
…#6490)

* Enable treasury.spend by Root origin

* EnsureRoot -> EnsureRootWithSuccess
  • Loading branch information
sorpaas authored Jan 17, 2023
1 parent 538bdd3 commit 08b8ab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ parameter_types! {
pub const MaxKeys: u32 = 10_000;
pub const MaxPeerInHeartbeats: u32 = 10_000;
pub const MaxPeerDataEncodingSize: u32 = 1_000;
pub const RootSpendOriginMaxAmount: Balance = Balance::MAX;
}

type ApproveOrigin = EitherOfDiverse<
Expand All @@ -856,7 +857,7 @@ impl pallet_treasury::Config for Runtime {
type SpendFunds = Bounties;
type MaxApprovals = MaxApprovals;
type WeightInfo = weights::pallet_treasury::WeightInfo<Runtime>;
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
type SpendOrigin = frame_system::EnsureRootWithSuccess<AccountId, RootSpendOriginMaxAmount>;
}

parameter_types! {
Expand Down

0 comments on commit 08b8ab4

Please sign in to comment.