Initial commit: add .gitignore and README
This commit is contained in:
14
smart_contracts/contracts/Counter.sol
Normal file
14
smart_contracts/contracts/Counter.sol
Normal file
@@ -0,0 +1,14 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.10;
|
||||
contract Counter {
|
||||
int private count = 0;
|
||||
function incrementCounter() public {
|
||||
count += 1;
|
||||
}
|
||||
function decrementCounter() public {
|
||||
count -= 1;
|
||||
}
|
||||
function getCount() public view returns (int) {
|
||||
return count;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user