Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
Amxx committed Jan 18, 2024
commit dc2f8f41397adf55c3bb039524bb05d0e7d10947
8 changes: 7 additions & 1 deletion contracts/token/ERC721/utils/ERC721Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ library ERC721Utils {
* contains code at the moment of execution. This will revert if the recipient doesn't accept the token transfer.
* The call is not executed if the target address is not a contract.
*/
function checkOnERC721Received(address operator, address from, address to, uint256 tokenId, bytes memory data) internal {
function checkOnERC721Received(
address operator,
address from,
address to,
uint256 tokenId,
bytes memory data
) internal {
if (to.code.length > 0) {
try IERC721Receiver(to).onERC721Received(operator, from, tokenId, data) returns (bytes4 retval) {
if (retval != IERC721Receiver.onERC721Received.selector) {
Expand Down