From e7e8773cd43121cdedff6151d379503ff899e595 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Tue, 22 May 2018 18:14:23 -0700 Subject: Fix small bug in order-utils --- packages/order-utils/src/signature_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/order-utils/src/signature_utils.ts b/packages/order-utils/src/signature_utils.ts index 28a8e7241..ebd636b20 100644 --- a/packages/order-utils/src/signature_utils.ts +++ b/packages/order-utils/src/signature_utils.ts @@ -99,7 +99,7 @@ function parseSignatureHexAsVRS(signatureHex: string): ECSignature { // HACK: Sometimes v is returned as [0, 1] and sometimes as [27, 28] // If it is returned as [0, 1], add 27 to both so it becomes [27, 28] const lowestValidV = 27; - const isProperlyFormattedV = v < lowestValidV; + const isProperlyFormattedV = v >= lowestValidV; if (!isProperlyFormattedV) { v += lowestValidV; } -- cgit v1.2.3