In @0x/contracts-exchange
: Change validator/wallet return value test to == 1
instead of != 0
.
This commit is contained in:
parent
eb00ff05a8
commit
c24bb139dd
@ -280,7 +280,7 @@ contract MixinSignatureValidator is
|
|||||||
(bool didSucceed, bytes memory returnData) = walletAddress.staticcall(callData);
|
(bool didSucceed, bytes memory returnData) = walletAddress.staticcall(callData);
|
||||||
// Return data should be a single bool.
|
// Return data should be a single bool.
|
||||||
if (didSucceed && returnData.length == 32) {
|
if (didSucceed && returnData.length == 32) {
|
||||||
return returnData.readUint256(0) != 0;
|
return returnData.readUint256(0) == 1;
|
||||||
}
|
}
|
||||||
// Static call to verifier failed.
|
// Static call to verifier failed.
|
||||||
rrevert(SignatureWalletError(
|
rrevert(SignatureWalletError(
|
||||||
@ -338,7 +338,7 @@ contract MixinSignatureValidator is
|
|||||||
(bool didSucceed, bytes memory returnData) = validatorAddress.staticcall(callData);
|
(bool didSucceed, bytes memory returnData) = validatorAddress.staticcall(callData);
|
||||||
// Return data should be a single bool.
|
// Return data should be a single bool.
|
||||||
if (didSucceed && returnData.length == 32) {
|
if (didSucceed && returnData.length == 32) {
|
||||||
return returnData.readUint256(0) != 0;
|
return returnData.readUint256(0) == 1;
|
||||||
}
|
}
|
||||||
// Static call to verifier failed.
|
// Static call to verifier failed.
|
||||||
rrevert(SignatureValidatorError(
|
rrevert(SignatureValidatorError(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user