Skip to content

Commit

Permalink
Updated the reject_revenue benchmark function in the fund-admin ben…
Browse files Browse the repository at this point in the history
…chmarking module, replacing the unused `a` input parameter with the correct `b` parameter. Commented out the `#[cfg(feature = "runtime-benchmarks")]` block in the fund-admin library module to enable the compilation of the benchmarking module.
  • Loading branch information
didiermis committed Apr 5, 2024
1 parent 880610b commit b64d6b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/fund-admin/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ mod benchmarks {

#[benchmark]
fn reject_revenue(
a: Linear<1, 400>,
b: Linear<1, 400>,
) {
let admin = initialize_pallet::<T>(100);
let project_id = create_full_project::<T>(admin.clone()).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion pallets/fund-admin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pub use pallet::*;

#[cfg(feature = "runtime-benchmarks")]
// #[cfg(feature = "runtime-benchmarks")]
mod benchmarking;

#[cfg(test)]
Expand Down

0 comments on commit b64d6b3

Please sign in to comment.