Skip to content

Commit

Permalink
Add benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Nov 6, 2024
1 parent 86b44f8 commit 092ed60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/common/src/gov_origin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,9 @@ where
r => Err(O::from(r)),
})
}

#[cfg(feature = "runtime-benchmarks")]
fn try_successful_origin() -> Result<O, ()> {
Ok(O::from(RawOrigin::Root))
}
}

0 comments on commit 092ed60

Please sign in to comment.