mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
21 lines
451 B
Solidity
21 lines
451 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.0;
|
|
|
|
contract SimpleStorage {
|
|
uint256 private value;
|
|
|
|
event ValueChanged(uint256 newValue);
|
|
|
|
constructor(uint256 initialValue) {
|
|
value = initialValue;
|
|
}
|
|
|
|
function setValue(uint256 newValue) public {
|
|
value = newValue;
|
|
emit ValueChanged(newValue);
|
|
}
|
|
|
|
function getValue() public view returns (uint256) {
|
|
return value;
|
|
}
|
|
}
|