Skip to content

Commit

Permalink
fix: benchmarking added .
Browse files Browse the repository at this point in the history
  • Loading branch information
nakul1010 committed Oct 4, 2023
1 parent 20cfc78 commit aeaba1d
Show file tree
Hide file tree
Showing 5 changed files with 1,301 additions and 1,303 deletions.
7 changes: 7 additions & 0 deletions crates/redeem/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ pub mod benchmarks {

#[extrinsic_call]
_(RawOrigin::Signed(caller), amount, btc_address, vault_id.clone());
let redeem_vault_request = Redeem::<T>::get_redeem_requests_for_vault(vault_id.account_id.clone());
let redeem_request_hash = redeem_vault_request
.first()
.cloned()
.unwrap_or_else(|| panic!("No redeem request found"));
let redeem_struct = RedeemRequests::<T>::get(redeem_request_hash).unwrap();
assert!(redeem_struct.premium > 0);
}

#[benchmark]
Expand Down
Loading

0 comments on commit aeaba1d

Please sign in to comment.