--- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -971,9 +971,8 @@ Self::check_owner_permissions(&target_collection, &sender)?; target_collection.meta_update_permission = value; - >::insert(target_collection.id, target_collection.collection); - Ok(()) + target_collection.save() } /// Destroys a concrete instance of NFT.