difftreelog
Merge pull request #212 from UniqueNetwork/feature/skip-zero-transfers
in: master
Skip zero value transfers in transferFrom
2 files changed
pallets/nft/src/lib.rsdiffbeforeafterboth1354 Self::check_white_list(&target_collection, &recipient)?;1354 Self::check_white_list(&target_collection, &recipient)?;1355 }1355 }13561357 if value == 0 {1358 return Ok(())1359 }135613601357 // 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 01358 if approval.saturating_sub(value) > 0 {1362 if approval.saturating_sub(value) > 0 {runtime/src/lib.rsdiffbeforeafterboth151 spec_name: create_runtime_str!("nft"),151 spec_name: create_runtime_str!("nft"),152 impl_name: create_runtime_str!("nft"),152 impl_name: create_runtime_str!("nft"),153 authoring_version: 1,153 authoring_version: 1,154 spec_version: 3,154 spec_version: 4,155 impl_version: 1,155 impl_version: 1,156 apis: RUNTIME_API_VERSIONS,156 apis: RUNTIME_API_VERSIONS,157 transaction_version: 1,157 transaction_version: 1,