* Move contracts to subdirectories Fixes #1177. This Change also removes the LimitBalance contract. * fix import * move MerkleProof to cryptography * Fix import
22 lines
430 B
Solidity
22 lines
430 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "../utils/AutoIncrementing.sol";
|
|
|
|
|
|
contract AutoIncrementingImpl {
|
|
using AutoIncrementing for AutoIncrementing.Counter;
|
|
|
|
uint256 public theId;
|
|
|
|
// use whatever key you want to track your counters
|
|
mapping(string => AutoIncrementing.Counter) private counters;
|
|
|
|
function doThing(string _key)
|
|
public
|
|
returns (uint256)
|
|
{
|
|
theId = counters[_key].nextId();
|
|
return theId;
|
|
}
|
|
}
|