Skip to content

Commit

Permalink
Adhere to 721 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cygaar committed Feb 10, 2024
1 parent d63e05c commit 59097fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DN404NonFungibleShadow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 59097fd

Please sign in to comment.