Revert after cascade

This commit is contained in:
Remco Bloemen
2018-02-14 15:15:52 -08:00
committed by Amir Bandeali
parent d0f32d1865
commit 6bb93b8170

View File

@@ -68,13 +68,14 @@ contract MixinSignatureValidator is
);
isValid = signer == recovered;
return;
// Anything else is illegal
} else {
revert();
}
return false;
// Anything else is illegal (We do not return false because
// the signature may actually be valid, just not in a format
// that we currently support. In this case returning false
// may lead the caller to incorrectly believe that the
// signature was invalid.)
revert();
}
function get32(bytes b, uint256 index)