tornado-core/contracts/Mocks/MerkleTreeWithHistoryMock.sol

13 lines
326 B
Solidity
Raw Normal View History

2021-02-10 21:37:18 -08:00
// SPDX-License-Identifier: MIT
2021-03-11 23:05:59 +03:00
pragma solidity ^0.7.0;
2019-07-10 19:58:21 +03:00
2021-02-11 09:23:18 +03:00
import "../MerkleTreeWithHistory.sol";
2019-07-10 19:58:21 +03:00
contract MerkleTreeWithHistoryMock is MerkleTreeWithHistory {
2021-03-11 23:05:59 +03:00
constructor(uint32 _treeLevels, IHasher _hasher) MerkleTreeWithHistory(_treeLevels, _hasher) {}
2019-07-10 19:58:21 +03:00
2019-11-05 00:04:22 +03:00
function insert(bytes32 _leaf) public {
2021-02-11 09:23:18 +03:00
_insert(_leaf);
2019-07-10 19:58:21 +03:00
}
}