mirror of
https://github.com/tornadocash/tornado-anonymity-mining.git
synced 2024-11-25 11:18:30 +01:00
19 lines
496 B
Solidity
19 lines
496 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.0;
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
import "../utils/MerkleTreeWithHistory.sol";
|
|
|
|
contract MerkleTreeWithHistoryMock is MerkleTreeWithHistory {
|
|
constructor(uint32 _treeLevels, IHasher _hasher) public MerkleTreeWithHistory(_treeLevels, _hasher) {}
|
|
|
|
function insert(bytes32 _leaf) external returns (uint32 index) {
|
|
return _insert(_leaf);
|
|
}
|
|
|
|
function bulkInsert(bytes32[] memory _leaves) external {
|
|
_bulkInsert(_leaves);
|
|
}
|
|
}
|