ens-usernames/contracts/test/MerkleProofWrapper.sol

22 lines
368 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.5.11;
import "../common/MerkleProof.sol";
contract MerkleProofWrapper {
function verifyProof(
bytes32[] memory _proof,
bytes32 _root,
bytes32 _leaf
)
public
pure
returns (bool)
{
return MerkleProof.verifyProof(_proof, _root, _leaf);
}
}