Skip to content

Commit

Permalink
Feat/benchmarking reward (#180)
Browse files Browse the repository at this point in the history
Signed-off-by: dung5ire <dung@5ire.org>
  • Loading branch information
dung5ire authored Aug 2, 2024
1 parent 583a818 commit e13d34f
Show file tree
Hide file tree
Showing 11 changed files with 180 additions and 324 deletions.
123 changes: 12 additions & 111 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frame/esg/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

use crate::{Pallet as Esg, *};
use frame_benchmarking::{account, benchmarks, whitelisted_caller};
use frame_support::{inherent::Vec, WeakBoundedVec};
use frame_support::WeakBoundedVec;
use sp_std::vec::Vec;
use frame_system::RawOrigin;

benchmarks! {
Expand Down
1 change: 1 addition & 0 deletions frame/reward/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use frame_benchmarking::whitelisted_caller;
use crate::Pallet as Reward;
use frame_benchmarking::v2::*;
use frame_system::RawOrigin as SystemOrigin;
use sp_std::vec;

#[benchmarks]
mod benchmarks {
Expand Down
1 change: 1 addition & 0 deletions frame/reward/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ mod tests;
pub mod weights;
pub use weights::WeightInfo;


#[frame_support::pallet]
pub mod pallet {
use super::*;
Expand Down
Loading

0 comments on commit e13d34f

Please sign in to comment.