Skip to content

Commit 8f39a58

Browse files
authored
Merge pull request #1258 from opentensor/feat/rao-only-root-can-close
[RAO] only allow root to close proposals
2 parents d4d8182 + 43809a7 commit 8f39a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pallets/collective/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ pub mod pallet {
665665
proposal_weight_bound: Weight,
666666
#[pallet::compact] length_bound: u32,
667667
) -> DispatchResultWithPostInfo {
668-
let _ = ensure_signed(origin)?;
668+
ensure_root(origin)?;
669669

670670
Self::do_close(proposal_hash, index, proposal_weight_bound, length_bound)
671671
}

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220220
// `spec_version`, and `authoring_version` are the same between Wasm and native.
221221
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222222
// the compatible custom types.
223-
spec_version: 218,
223+
spec_version: 219,
224224
impl_version: 1,
225225
apis: RUNTIME_API_VERSIONS,
226226
transaction_version: 1,

0 commit comments

Comments
 (0)