aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-23 09:14:23 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-05-23 09:14:23 +0800
commite7e8773cd43121cdedff6151d379503ff899e595 (patch)
tree381c55fd8a5398e9b17f99ed7ed938ea6e469e1a /packages
parent3507fe6d5b66db2c2d6d3a70f29023302a5b8eac (diff)
downloaddexon-sol-tools-e7e8773cd43121cdedff6151d379503ff899e595.tar
dexon-sol-tools-e7e8773cd43121cdedff6151d379503ff899e595.tar.gz
dexon-sol-tools-e7e8773cd43121cdedff6151d379503ff899e595.tar.bz2
dexon-sol-tools-e7e8773cd43121cdedff6151d379503ff899e595.tar.lz
dexon-sol-tools-e7e8773cd43121cdedff6151d379503ff899e595.tar.xz
dexon-sol-tools-e7e8773cd43121cdedff6151d379503ff899e595.tar.zst
dexon-sol-tools-e7e8773cd43121cdedff6151d379503ff899e595.zip
Fix small bug in order-utils
Diffstat (limited to 'packages')
-rw-r--r--packages/order-utils/src/signature_utils.ts2
1 files changed, 1 insertions, 1 deletions
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;
}