Skip to content

Commit

Permalink
Added description for return value
Browse files Browse the repository at this point in the history
  • Loading branch information
byshape committed Jan 17, 2024
1 parent 272505f commit febf7c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/Escrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ contract Escrow is Clone, IEscrow {
* @dev The secret is valid if its hash matches the hashlock.
* @param secret Provided secret to verify.
* @param hashlock Hashlock to compare with.
* @return True if the secret is valid, false otherwise.
*/
function _isValidSecret(bytes32 secret, bytes32 hashlock) internal pure returns (bool) {
return keccak256(abi.encode(secret)) == hashlock;
Expand Down

0 comments on commit febf7c0

Please sign in to comment.