Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"sources": {
"contracts/ethai.sol": {
"content": "// SPDX-License-Identifier: GPL-3.0\r
\r
pragma solidity >=0.8.2 <0.9.0;\r
\r
/**\r
* @title ethai\r
* @dev Store & retrieve value in a variable\r
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts\r
*/\r
contract ethai {\r
\r
uint256 number;\r
\r
/**\r
* @dev Store value in variable\r
* @param num value to store\r
*/\r
function store(uint256 num) public {\r
number = num;\r
}\r
\r
/**\r
* @dev Return value \r
* @return value of 'number'\r
*/\r
function retrieve() public view returns (uint256){\r
return number;\r
}\r
}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}
}}
Submitted on: 2025-11-01 14:17:31
Comments
Log in to comment.
No comments yet.