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

difftreelog

feat skip transfers with zero value

Yaroslav Bolyukin2021-10-06parent: #3bcc5aa.patch.diff
in: master

1 file 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 {