Tips: Remix Tutorial
Remix Tutorial
pragma solidity ^0.8;
contract MyContract {
int myInteger;
constructor() public { myInteger = 0; }
function setInteger(int _myInteger) public {
myInteger = _myInteger;
}
function getInteger() public view returns (int) {
return myInteger;
}
}Conclusion
Last updated