Skip to content

Commit

Permalink
fix benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
herryho committed Dec 25, 2023
1 parent 98666d8 commit 3123c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/channel-commission/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ benchmarks! {
let origin = T::ControlOrigin::try_successful_origin().map_err(|_| BenchmarkError::Weightless)?;
let channel_name = b"Bifrost".to_vec();
let receiver = whitelisted_caller();
let commission_rate = 0;
let commission_rate = Percent::from_percent(0);
let channel_id = 0;
let vtoken = CurrencyId::VToken2(0);
let commission_token = CurrencyId::Token2(0);
Expand All @@ -96,7 +96,7 @@ benchmarks! {
origin.clone(),
channel_name, receiver
));
}: _<T::RuntimeOrigin>(origin.clone(),channel_id, vtoken, Some(commission_rate))
}: _<T::RuntimeOrigin>(origin.clone(),channel_id, vtoken, commission_rate)

set_commission_tokens {
let origin = T::ControlOrigin::try_successful_origin().map_err(|_| BenchmarkError::Weightless)?;
Expand Down

0 comments on commit 3123c3d

Please sign in to comment.