Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"sources": {
"Base-Learn1.sol": {
"content": "// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.20;\r
\r
contract BaseLearn1 {\r
\r
function adder(uint _a, uint _b) public pure returns (uint, bool) {\r
uint sum = _a + _b;\r
// Overflow check\r
if (sum < _a) {\r
return (0, true); // overflow\r
}\r
return (sum, false);\r
}\r
\r
function subtractor(uint _a, uint _b) public pure returns (uint, bool) {\r
if (_b > _a) {\r
return (0, true); // underflow\r
}\r
return (_a - _b, false);\r
}\r
}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}
}}
Submitted on: 2025-11-02 11:24:19
Comments
Log in to comment.
No comments yet.