small typos
This commit is contained in:
parent
ef4934417b
commit
180cdc3215
|
@ -1,15 +1,15 @@
|
||||||
pragma solidity ^0.4.24;
|
pragma solidity ^0.4.24;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* @title MerkleProof
|
* @title MerkleProof
|
||||||
* @dev Merkle proof verification based on
|
* @dev Merkle proof verification based on
|
||||||
* https://github.com/ameensol/merkle-tree-solidity/blob/master/src/MerkleProof.sol
|
* https://github.com/ameensol/merkle-tree-solidity/blob/master/src/MerkleProof.sol
|
||||||
*/
|
*/
|
||||||
library MerkleProof {
|
library MerkleProof {
|
||||||
/*
|
/**
|
||||||
* @dev Verifies a Merkle proof proving the existence of a leaf in a Merkle tree. Assumes that each pair of leaves
|
* @dev Verifies a Merkle proof proving the existence of a leaf in a Merkle tree. Assumes that each pair of leaves
|
||||||
* and each pair of pre-images is sorted.
|
* and each pair of pre-images are sorted.
|
||||||
* @param _proof Merkle proof containing sibling hashes on the branch from the leaf to the root of the Merkle tree
|
* @param _proof Merkle proof containing sibling hashes on the branch from the leaf to the root of the Merkle tree
|
||||||
* @param _root Merkle root
|
* @param _root Merkle root
|
||||||
* @param _leaf Leaf of Merkle tree
|
* @param _leaf Leaf of Merkle tree
|
||||||
|
@ -41,19 +41,3 @@ library MerkleProof {
|
||||||
return computedHash == _root;
|
return computedHash == _root;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
© 2018 GitHub, Inc.
|
|
||||||
Terms
|
|
||||||
Privacy
|
|
||||||
Security
|
|
||||||
Status
|
|
||||||
Help
|
|
||||||
|
|
||||||
Contact GitHub
|
|
||||||
API
|
|
||||||
Training
|
|
||||||
Shop
|
|
||||||
Blog
|
|
||||||
About
|
|
||||||
|
|
||||||
Press h to open a hovercard with more details.
|
|
||||||
|
|
|
@ -202,7 +202,7 @@ contract ENSSubdomainRegistry is Controlled {
|
||||||
MerkleProof.verifyProof(
|
MerkleProof.verifyProof(
|
||||||
_proof,
|
_proof,
|
||||||
unallowedCharactersMerkleRoot,
|
unallowedCharactersMerkleRoot,
|
||||||
keccak256(abi.encodePacked(rangeStart, rangeEnd))
|
keccak256(abi.encodePacked(_rangeStart, _rangeEnd))
|
||||||
),
|
),
|
||||||
"Invalid Proof."
|
"Invalid Proof."
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue