diff --git a/pallets/nfts/src/benchmarking.rs b/pallets/nfts/src/benchmarking.rs index 58209b8b..d8876d52 100644 --- a/pallets/nfts/src/benchmarking.rs +++ b/pallets/nfts/src/benchmarking.rs @@ -295,7 +295,7 @@ benchmarks_instance_pallet! { burn_item::(i as u16); } for i in 0..l { - approve_collection::(i as u32); + approve_collection::(i); } let witness = Collection::::get(collection).unwrap().destroy_witness(); }: _(SystemOrigin::Signed(caller), collection, witness) diff --git a/pallets/nfts/src/features/create_delete_item.rs b/pallets/nfts/src/features/create_delete_item.rs index a7b7ddf3..08cf5f95 100644 --- a/pallets/nfts/src/features/create_delete_item.rs +++ b/pallets/nfts/src/features/create_delete_item.rs @@ -73,7 +73,7 @@ impl, I: 'static> Pallet { let account_balance = AccountBalance::::mutate(collection, &mint_to, |balance| -> u32 { balance.saturating_inc(); - balance.clone() + *balance }); if account_balance == 1 { collection_details.item_holders.saturating_inc(); diff --git a/pallets/nfts/src/features/transfer.rs b/pallets/nfts/src/features/transfer.rs index dbe6f3b0..3f2dae3b 100644 --- a/pallets/nfts/src/features/transfer.rs +++ b/pallets/nfts/src/features/transfer.rs @@ -91,7 +91,7 @@ impl, I: 'static> Pallet { let owner_balance = AccountBalance::::mutate(collection, &details.owner, |balance| -> u32 { balance.saturating_dec(); - balance.clone() + *balance }); if owner_balance == 0 { collection_details.item_holders.saturating_dec(); @@ -99,7 +99,7 @@ impl, I: 'static> Pallet { // Update account balance of the destination account. let dest_balance = AccountBalance::::mutate(collection, &dest, |balance| -> u32 { balance.saturating_inc(); - balance.clone() + *balance }); if dest_balance == 1 { collection_details.item_holders.saturating_inc();