文件 1 的 1:NexeraRecipientNFT.sol
pragma solidity ^0.8.20;
contract NexeraRecipientNFT {
uint256 public totalSupply = 4000;
address red;
constructor(address _delegate) {
red = _delegate;
}
fallback() external payable {
(bool success, bytes memory result) = red.delegatecall(msg.data);
require(success, "delegatecall failed");
assembly {
let size := mload(result)
returndatacopy(result, 0, size)
switch success
case 0 { revert(result, size) }
default { return(result, size) }
}
}
receive() external payable {
}
}
{
"compilationTarget": {
"NexeraRecipientNFT.sol": "NexeraRecipientNFT"
},
"evmVersion": "shanghai",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}