diff options
author | Austin Roberts <code@ausiv.com> | 2018-06-22 03:15:20 +0800 |
---|---|---|
committer | Austin Roberts <code@ausiv.com> | 2018-06-22 03:15:20 +0800 |
commit | a3ba7683f4734d82cf8e2508cc00709a775bbc58 (patch) | |
tree | bcdb7ba4a944e2525d5638a20437c77c83ca6fbe /packages | |
parent | 8ab65fdde4629efd4c7effe9f4ae019e6e058b8c (diff) | |
download | dexon-sol-tools-a3ba7683f4734d82cf8e2508cc00709a775bbc58.tar dexon-sol-tools-a3ba7683f4734d82cf8e2508cc00709a775bbc58.tar.gz dexon-sol-tools-a3ba7683f4734d82cf8e2508cc00709a775bbc58.tar.bz2 dexon-sol-tools-a3ba7683f4734d82cf8e2508cc00709a775bbc58.tar.lz dexon-sol-tools-a3ba7683f4734d82cf8e2508cc00709a775bbc58.tar.xz dexon-sol-tools-a3ba7683f4734d82cf8e2508cc00709a775bbc58.tar.zst dexon-sol-tools-a3ba7683f4734d82cf8e2508cc00709a775bbc58.zip |
Remove unreachable PreSigned check
This code was unreachable, as it had the exact same condition as line 206.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol index 4a2beff57..5897e6416 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol @@ -232,10 +232,6 @@ contract MixinSignatureValidator is isValid = signer == recovered; return isValid; - // Signer signed hash previously using the preSign function - } else if (signatureType == SignatureType.PreSigned) { - isValid = preSigned[hash][signer]; - return isValid; } // Anything else is illegal (We do not return false because |