I’m trying to use MerkleProof.sol.
Once imported, I write Using MerkleProof for ?
What I have to specify there?
Thanks!
Environment
OpenZeppelin v3.0.1
Truffle v5.1.24
Ganache-cli v6.9.1
Details
I’m getting the following error:
Undeclared identifier ==> verify()
Code to reproduce
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/cryptography/MerkleProof.sol";
contract MyContract {
Using MerkleProof for <?>;
constructor()
public
{}
function claim(bytes32[] memory proof, bytes32 root) returns (bool) {
require(verify(proof, root, keccak256(abi.encodePacked(msg.sender))), "Caller is not a claimer");
return true;
}
}