Skip to content

Commit

Permalink
πŸ‘·πŸ»β€β™‚οΈ Update sig verification logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredBorders committed Dec 5, 2023
1 parent 7440b62 commit 309139c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Engine.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract Engine is IEngine, EIP712, EIP7412 {
using MathLib for int128;
using MathLib for int256;
using MathLib for uint256;
using SignatureCheckerLib for bytes;
using SignatureCheckerLib for bytes32;
using ConditionalOrderHashLib for ConditionalOrder;

/*//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -569,9 +569,7 @@ contract Engine is IEngine, EIP712, EIP7412 {
ConditionalOrder calldata _co,
bytes calldata _signature
) public view override returns (bool) {
return _signature.isValidSignatureNowCalldata(
_hashTypedData(_co.hash()), _co.signer
);
return _hashTypedData(_co.hash()).recover(_signature) == _co.signer;
}

/// @inheritdoc IEngine
Expand Down

0 comments on commit 309139c

Please sign in to comment.