A basic Ethereum/Solidity contract demonstrating counter functionality.
- Counter.sol: Contains a single state variable
count
with functions toincrement
ordecrement
it.
Deploy on an Ethereum network like Ropsten using Remix IDE or Truffle Suite. Use increment
or decrement
to modify state.