CountersImpl.sol 405 B

123456789101112131415161718192021
  1. pragma solidity ^0.5.7;
  2. import "../drafts/Counters.sol";
  3. contract CountersImpl {
  4. using Counters for Counters.Counter;
  5. Counters.Counter private _counter;
  6. function current() public view returns (uint256) {
  7. return _counter.current();
  8. }
  9. function increment() public {
  10. _counter.increment();
  11. }
  12. function decrement() public {
  13. _counter.decrement();
  14. }
  15. }