Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: fix some typos in comments #2807

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/mandala/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ impl orml_authority::AsOriginId<RuntimeOrigin, OriginCaller> for AuthoritysOrigi
}
}

/// Compares privilages
/// Compares privileges
fn cmp_privilege(left: &OriginCaller, right: &OriginCaller) -> Option<Ordering> {
if left == right {
return Some(Ordering::Equal);
}

match (left, right) {
// Root always has privilage
// Root always has privilege
(OriginCaller::system(frame_system::RawOrigin::Root), _) => Some(Ordering::Greater),

// Checks which one has more yes votes.
Expand Down
4 changes: 2 additions & 2 deletions runtime/mandala/src/benchmarking/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ runtime_benchmarks! {
dispatch_as {
}: _(RawOrigin::Root, AuthoritysOriginId::Root, runtime_call())

// schdule a dispatchable to be dispatched at later block.
// schedule a dispatchable to be dispatched at later block.
schedule_dispatch_without_delay {
let call = RuntimeCall::Authority(orml_authority::Call::dispatch_as {
as_origin: AuthoritysOriginId::Root,
call: runtime_call(),
});
}: schedule_dispatch(RawOrigin::Root, DispatchTime::At(2), 0, false, bounded_call(call))

// schdule a dispatchable to be dispatched at later block.
// schedule a dispatchable to be dispatched at later block.
// ensure that the delay is reached when scheduling
schedule_dispatch_with_delay {
let call = RuntimeCall::Authority(orml_authority::Call::dispatch_as {
Expand Down