git.delta.rocks / unique-network / refs/commits / f837334117a3

difftreelog

Merge pull request #212 from UniqueNetwork/feature/skip-zero-transfers

kozyrevdev2021-10-07parents: #25e7a6f #570dda6.patch.diff
in: master
Skip zero value transfers in transferFrom

2 files changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
1354 Self::check_white_list(&target_collection, &recipient)?;1354 Self::check_white_list(&target_collection, &recipient)?;
1355 }1355 }
1356
1357 if value == 0 {
1358 return Ok(())
1359 }
13561360
1357 // Reduce approval by transferred amount or remove if remaining approval drops to 01361 // Reduce approval by transferred amount or remove if remaining approval drops to 0
1358 if approval.saturating_sub(value) > 0 {1362 if approval.saturating_sub(value) > 0 {
modifiedruntime/src/lib.rsdiffbeforeafterboth
--- a/runtime/src/lib.rs
+++ b/runtime/src/lib.rs
@@ -151,7 +151,7 @@
     spec_name: create_runtime_str!("nft"),
     impl_name: create_runtime_str!("nft"),
     authoring_version: 1,
-    spec_version: 3,
+    spec_version: 4,
     impl_version: 1,
     apis: RUNTIME_API_VERSIONS,
     transaction_version: 1,