Fix various documentation errors (#4601)
This commit is contained in:
@ -211,10 +211,16 @@ library MerkleProof {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Sorts the pair (a, b) and hashes the result.
|
||||
*/
|
||||
function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
|
||||
return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
|
||||
*/
|
||||
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
|
||||
/// @solidity memory-safe-assembly
|
||||
assembly {
|
||||
|
||||
Reference in New Issue
Block a user