Skip to content

Commit

Permalink
Update pallets/ocex/src/benchmarking.rs
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Gauthamastro and coderabbitai[bot] authored Mar 7, 2024
1 parent 871d1c1 commit e109824
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pallets/ocex/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ benchmarks! {
burn_ration,
};
}: _(RawOrigin::Root, fee_distribution)
// After executing the benchmark, verify the fee distribution configuration
verify {
let current_fee_distribution = FeeDistribution::<T>::get();
assert_eq!(current_fee_distribution.recipient_address, recipient_address);
assert_eq!(current_fee_distribution.auction_duration, auction_duration);
assert_eq!(current_fee_distribution.burn_ration, burn_ration);
}

place_bid {
let old_bidder = T::AccountId::decode(&mut &[1; 32][..]).unwrap();
Expand Down

0 comments on commit e109824

Please sign in to comment.