Skip to content

Commit

Permalink
chore: remove redudant checks
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Dec 30, 2024
1 parent 8210e9c commit f1753dd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pallets/nfts/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,6 @@ fn burn_works() {
Some(account(4)),
));

// Throws error `Error::UnknownItem` if burning an unknown collection item.
assert_noop!(
Nfts::burn(RuntimeOrigin::signed(account(5)), 0, 42),
Error::<Test>::UnknownItem
Expand All @@ -1878,16 +1877,6 @@ fn burn_works() {
default_item_config()
));

// Throws error `Error::NoItemOwned` if the account does not have an entry in
// `AccountBalance`.
let account_balance = AccountBalance::take(0, account(5));
assert_noop!(
Nfts::burn(RuntimeOrigin::signed(account(5)), 0, 42),
Error::<Test>::NoItemOwned
);
AccountBalance::set(0, account(5), account_balance);

// Throws error `Error::NoPermission`.
assert_noop!(
Nfts::burn(RuntimeOrigin::signed(account(0)), 0, 42),
Error::<Test>::NoPermission
Expand Down

0 comments on commit f1753dd

Please sign in to comment.