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/MyContract.sol": {
"content": "// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
contract MyContract {
uint256 private value;
event ValueChanged(uint256 v, address indexed by);
constructor(uint256 initial) { value = initial; emit ValueChanged(initial, msg.sender); }
function setValue(uint256 v) external { value = v; emit ValueChanged(v, msg.sender); }
function getValue() external view returns (uint256) { return value; }
}
"
}
},
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}
}}
Submitted on: 2025-11-07 11:46:54
Comments
Log in to comment.
No comments yet.