Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ratifiers/EcrecoverRatifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ contract EcrecoverRatifier is IEcrecoverRatifier {
function isRatified(Offer memory offer, bytes memory ratifierData) external view returns (bytes32) {
(Signature memory sig, bytes32 root, uint256 leafIndex, bytes32[] memory proof) =
abi.decode(ratifierData, (Signature, bytes32, uint256, bytes32[]));
require(HashLib.isLeaf(root, HashLib.hashOffer(offer), leafIndex, proof), InvalidProof());
require(!isRootCanceled[offer.maker][root], RootCanceled());
require(HashLib.isLeaf(root, HashLib.hashOffer(offer), leafIndex, proof), InvalidProof());
bytes32 structHash = keccak256(abi.encode(HashLib.offerTreeTypeHash(proof.length), root));
bytes32 domainSeparator = keccak256(abi.encode(EIP712_DOMAIN_TYPEHASH, block.chainid, address(this)));
bytes32 digest = keccak256(bytes.concat("\x19\x01", domainSeparator, structHash));
Expand Down