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];