Skip to content

Commit

Permalink
Test that approvals are also destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
sea212 committed Feb 5, 2024
1 parent f7516ad commit a771cb2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zrml/asset-router/src/tests/managed_destroy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ fn destroys_assets_fully_works_properly() {
assert_ok!(AssetRouter::create(*asset, ALICE, true, CAMPAIGN_ASSET_MIN_BALANCE));
}

assert_ok!(
pallet_assets::Call::<Runtime, CampaignAssetsInstance>::approve_transfer {
id: CAMPAIGN_ASSET_INTERNAL.into(),
delegate: BOB,
amount: 1
}
.dispatch_bypass_filter(Signed(ALICE).into())
);

assert_ok!(managed_destroy_multi_transactional(assets.clone()));
assert_eq!(crate::DestroyAssets::<Runtime>::get().len(), 3);

Expand Down

0 comments on commit a771cb2

Please sign in to comment.