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);
|
|
|
|
}
|
2021-10-06 16:51:46 +02:00
|
|
|
|
|
|
|
function initialize() external {
|
|
|
|
super._initialize();
|
|
|
|
}
|
2021-09-26 18:14:05 +02:00
|
|
|
}
|