From 534a917ee36fdf5e0b5f586d962ac8ae6cf0ccda Mon Sep 17 00:00:00 2001 From: Joseph Zhao <65984904+programskillforverification@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:59:26 +0800 Subject: [PATCH] Update contracts/src/token/erc1155/mod.rs Co-authored-by: Daniel Bigos --- contracts/src/token/erc1155/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/src/token/erc1155/mod.rs b/contracts/src/token/erc1155/mod.rs index 1266bc58..e89369c5 100644 --- a/contracts/src/token/erc1155/mod.rs +++ b/contracts/src/token/erc1155/mod.rs @@ -536,7 +536,7 @@ impl Erc1155 { data: Bytes, ) -> Result<(), Error> { self._update(from, to, token_ids.clone(), values.clone())?; - if to != Address::ZERO { + if !to.is_zero() { let operator = msg::sender(); if token_ids.len() == 1 { let token_id = token_ids[0];