Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
791 B
Solidity
29 lines
791 B
Solidity
// SPDX-License-Identifier: MIT
|
|
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../IERC721Receiver.sol";
|
|
|
|
/**
|
|
* @dev Implementation of the {IERC721Receiver} interface.
|
|
*
|
|
* Accepts all token transfers.
|
|
* Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
|
|
*/
|
|
contract ERC721Holder is IERC721Receiver {
|
|
/**
|
|
* @dev See {IERC721Receiver-onERC721Received}.
|
|
*
|
|
* Always returns `IERC721Receiver.onERC721Received.selector`.
|
|
*/
|
|
function onERC721Received(
|
|
address,
|
|
address,
|
|
uint256,
|
|
bytes memory
|
|
) public virtual override returns (bytes4) {
|
|
return this.onERC721Received.selector;
|
|
}
|
|
}
|