From 8a2492c27f02622097988b6c3a059c6591598521 Mon Sep 17 00:00:00 2001 From: William Entriken <382183+fulldecent@users.noreply.github.com> Date: Sat, 14 Nov 2026 20:57:59 -0500 Subject: [PATCH] fix: document correct magic return value, fixes #299 --- src/contracts/tokens/erc721.sol | 2 +- src/contracts/tokens/nf-token.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contracts/tokens/erc721.sol b/src/contracts/tokens/erc721.sol index 0028839..5ded32c 100644 --- a/src/contracts/tokens/erc721.sol +++ b/src/contracts/tokens/erc721.sol @@ -47,7 +47,7 @@ interface ERC721 * the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this * function checks if `_to` is a smart contract (code size > 0). If so, it calls * `onERC721Received` on `_to` and throws if the return value is not - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`. + * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`. * @dev Transfers the ownership of an NFT from one address to another address. This function can * be changed to payable. * @param _from The current owner of the NFT. diff --git a/src/contracts/tokens/nf-token.sol b/src/contracts/tokens/nf-token.sol index b8dbd2c..e137df0 100644 --- a/src/contracts/tokens/nf-token.sol +++ b/src/contracts/tokens/nf-token.sol @@ -124,7 +124,7 @@ contract NFToken is * the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this * function checks if `_to` is a smart contract (code size > 0). If so, it calls * `onERC721Received` on `_to` and throws if the return value is not - * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`. + * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`. * @dev Transfers the ownership of an NFT from one address to another address. This function can * be changed to payable. * @param _from The current owner of the NFT.