Skip to content

Commit

Permalink
chore: verify benchmarks with storage checks
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Dec 13, 2024
1 parent abc54e8 commit 6ef9b32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pallets/nfts/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,8 @@ benchmarks_instance_pallet! {
}
}: _(SystemOrigin::Signed(caller.clone()), collection, n)
verify {
assert_last_event::<T, I>(Event::ApprovalsCancelled {collection, item: None, owner: caller}.into());
assert_last_event::<T, I>(Event::ApprovalsCancelled {collection, item: None, owner: caller.clone()}.into());
assert!(CollectionApprovals::<T, I>::iter_prefix((collection, caller,)).take(1).next().is_none());
}

force_clear_collection_approvals {
Expand All @@ -687,7 +688,8 @@ benchmarks_instance_pallet! {
}
}: _(SystemOrigin::Root, caller_lookup, collection, n)
verify {
assert_last_event::<T, I>(Event::ApprovalsCancelled {collection, item: None, owner: caller}.into());
assert_last_event::<T, I>(Event::ApprovalsCancelled {collection, item: None, owner: caller.clone()}.into());
assert!(CollectionApprovals::<T, I>::iter_prefix((collection, caller,)).take(1).next().is_none());
}

set_accept_ownership {
Expand Down

0 comments on commit 6ef9b32

Please sign in to comment.