diff options
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol index 91e788763..2d04c7c6d 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol @@ -96,9 +96,10 @@ contract MixinSignatureValidator is ); isValid = signer == recovered; return isValid; - + // Signature using EIP712 } else if (signatureType == SignatureType.EIP712) { + require(signature.length == 66); v = uint8(signature[1]); r = get32(signature, 2); s = get32(signature, 34); |