Skip to content

Commit

Permalink
Update contracts/src/token/erc1155/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Bigos <[email protected]>
  • Loading branch information
programskillforverification and bidzyyys authored Sep 10, 2024
1 parent bb630f0 commit 534a917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/src/token/erc1155/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 534a917

Please sign in to comment.