tornado-nova/contracts/Mocks/MerkleTreeWithHistoryMock.sol

17 lines
439 B
Solidity
Raw Normal View History

2021-09-26 18:14:05 +02:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "../MerkleTreeWithHistory.sol";
contract MerkleTreeWithHistoryMock is MerkleTreeWithHistory {
constructor(uint32 _levels, address _hasher) MerkleTreeWithHistory(_levels, _hasher) {}
function insert(bytes32 _leaf1, bytes32 _leaf2) public returns (uint32 index) {
return _insert(_leaf1, _leaf2);
}
function initialize() external {
super._initialize();
}
2021-09-26 18:14:05 +02:00
}