From eee7b9a88c5e5a667cca5e1488e27ded2a6ee55a Mon Sep 17 00:00:00 2001 From: Moon Date: Sun, 29 Jan 2023 13:00:39 -0500 Subject: [PATCH] okay this should fix the event unwrap bug. --- contracts/CurioERC1155Wrapper.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/CurioERC1155Wrapper.sol b/contracts/CurioERC1155Wrapper.sol index e4cf450..8a5b020 100644 --- a/contracts/CurioERC1155Wrapper.sol +++ b/contracts/CurioERC1155Wrapper.sol @@ -162,7 +162,7 @@ contract CurioERC1155Wrapper is ERC1155, ERC1155Metadata_URI { curio.transfer(msg.sender, _quantity); // burn - emit TransferSingle(msg.sender, address(this), address(0), _id, _quantity); + emit TransferSingle(msg.sender, msg.sender, address(0), _id, _quantity); } /** @@ -186,7 +186,7 @@ contract CurioERC1155Wrapper is ERC1155, ERC1155Metadata_URI { } // burn - emit TransferBatch(msg.sender, address(this), address(0), _ids, _quantities); + emit TransferBatch(msg.sender, msg.sender, address(0), _ids, _quantities); } /**