From f1753dd410ee304937de7fb8c56a23c2ec16e987 Mon Sep 17 00:00:00 2001 From: chungquantin <56880684+chungquantin@users.noreply.github.com> Date: Mon, 30 Dec 2024 09:10:02 +0700 Subject: [PATCH] chore: remove redudant checks --- pallets/nfts/src/tests.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pallets/nfts/src/tests.rs b/pallets/nfts/src/tests.rs index f53263e3..70cfdf77 100644 --- a/pallets/nfts/src/tests.rs +++ b/pallets/nfts/src/tests.rs @@ -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::::UnknownItem @@ -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::::NoItemOwned - ); - AccountBalance::set(0, account(5), account_balance); - - // Throws error `Error::NoPermission`. assert_noop!( Nfts::burn(RuntimeOrigin::signed(account(0)), 0, 42), Error::::NoPermission