Skip to content

Commit

Permalink
make digest method pure
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Filippov <[email protected]>
  • Loading branch information
r0wdy1 and AllFi authored Dec 18, 2023
1 parent 37af23c commit 36d65fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zkbob/manager/MPCGuard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract MPCGuard is Ownable, CustomABIDecoder {
guards = _guards;
}

function digest(bytes memory data) internal returns (bytes32) {
function digest(bytes memory data) internal pure returns (bytes32) {
return ECDSA.toEthSignedMessageHash(keccak256(data));
}

Expand Down

0 comments on commit 36d65fb

Please sign in to comment.