Verified contractExactMIT
StaticCalls
Address0x10b32e960c7608e534c8ce2821d2c76f5cd54a04
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.0
- Same code
1 more contract
Details
- Compiler
- solc 0.8.0+commit.c7dfd78e
- Language
- solidity
- Optimization
- No
- EVM version
- istanbul
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 17,128,913
- Creation transaction
- 0x8ce6b24ce8…67ec835e3b
/Users/user/Develope/work/nft-wallet-contract/contracts/StaticCalls.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
contract StaticCalls {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address,
address,
uint256,
bytes memory
) public pure returns (bytes4) {
return this.onERC721Received.selector;
}
function onERC1155Received(
address,
address,
uint256,
uint256,
bytes memory
) external pure returns (bytes4) {
return this.onERC1155Received.selector;
}
}
Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "istanbul",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.