Skip to content

Commit

Permalink
update origins & tracks (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf authored May 6, 2024
1 parent fb260f1 commit ec5d836
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions runtime/regionx/src/governance/origins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

pub use pallet_custom_origins::*;

// TODO: investigate warning
#[allow(unused_imports)]
#[frame_support::pallet]
pub mod pallet_custom_origins {
Expand Down Expand Up @@ -117,7 +116,7 @@ pub mod pallet_custom_origins {
SmallTipper = 500 * REGX,
BigTipper = 2000 * REGX,
SmallSpender = 50_000 * REGX,
MediumSpender = 100_000 * REGX,
MediumSpender = 200_000 * REGX,
BigSpender = 500_000 * REGX,
}
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/regionx/src/governance/tracks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl pallet_referenda::TracksInfo<Balance, BlockNumber> for DelegatedReferendaTr
_ => Err(()),
}
} else {
// Treasury is only controlable with native tokens.
// Treasury is only controllable with native tokens.
Err(())
}
}
Expand All @@ -197,7 +197,7 @@ impl pallet_referenda::TracksInfo<Balance, BlockNumber> for NativeReferendaTrack
}
fn track_for(id: &Self::RuntimeOrigin) -> Result<Self::Id, ()> {
if let Ok(_system_origin) = frame_system::RawOrigin::try_from(id.clone()) {
// Root is the only avaialable origin for relay chain asset holders.
// Root is the only available origin for relay chain asset holders.
Err(())
} else if let Ok(custom_origin) = origins::Origin::try_from(id.clone()) {
match custom_origin {
Expand Down

0 comments on commit ec5d836

Please sign in to comment.