Skip to content

Commit

Permalink
Minor code refactroing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dkwcs committed Nov 26, 2024
1 parent c140b10 commit c056138
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// Module provides `mock` items for using them in nft_marketplace and rental extensions.
module nft_marketplace::market_items {
use iota::package;
/// One Time Witness.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ module nft_marketplace::nft_marketplace {
item_key: Key,
) : ItemPrice<T> {
let ext_storage_mut = kiosk_extension::storage_mut(Marketplace {}, kiosk);
assert!(bag::contains(ext_storage_mut, item_key), EObjectNotExist);
bag::remove<Key, ItemPrice<T>>(
ext_storage_mut,
item_key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ module nft_marketplace::rental_extension {
item: Key,
) : Rentable<T> {
let ext_storage_mut = kiosk_extension::storage_mut(Rental {}, kiosk);
assert!(bag::contains(ext_storage_mut, item), EObjectNotExist);
bag::remove<Key, Rentable<T>>(
ext_storage_mut,
item,
Expand Down

0 comments on commit c056138

Please sign in to comment.