From 59097fd2954b1f9ad0462de93b461ccdcf36a380 Mon Sep 17 00:00:00 2001 From: cygaar Date: Sat, 10 Feb 2024 10:41:05 -0500 Subject: [PATCH] Adhere to 721 interface --- src/DN404NonFungibleShadow.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DN404NonFungibleShadow.sol b/src/DN404NonFungibleShadow.sol index b5c0fab..246b755 100644 --- a/src/DN404NonFungibleShadow.sol +++ b/src/DN404NonFungibleShadow.sol @@ -79,21 +79,21 @@ contract DN404NonFungibleShadow { if (owner == address(0)) revert TokenDoesNotExist(); } - function approve(address spender, uint256 id) public virtual returns (bool) { + function approve(address spender, uint256 id) public virtual { address owner = FUNGIBLE_SISTER_CONTRACT.approveNFT(spender, id, msg.sender); emit Approval(owner, spender, id); - return true; } function setApprovalForAll(address operator, bool approved) public virtual { - emit ApprovalForAll(msg.sender, operator, approved); + FUNGIBLE_SISTER_CONTRACT.setApprovalForAll(operator, approved, msg.sender); - return FUNGIBLE_SISTER_CONTRACT.setApprovalForAll(operator, approved, msg.sender); + emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom(address from, address to, uint256 id) public virtual { FUNGIBLE_SISTER_CONTRACT.transferFromNFT(from, to, id, msg.sender); + emit Transfer(from, to, id); }