aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/abi_encoder
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 20:45:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 23:25:26 +0800
commita3cb722469e90a676ac00bcd7a9934dbb6e52468 (patch)
treebdd97c2d9479e6739cb8d811da86d4af09cb8f76 /packages/utils/src/abi_encoder
parent2cca2d70d742713747e6c8777b5b4af27115ae97 (diff)
downloaddexon-0x-contracts-a3cb722469e90a676ac00bcd7a9934dbb6e52468.tar
dexon-0x-contracts-a3cb722469e90a676ac00bcd7a9934dbb6e52468.tar.gz
dexon-0x-contracts-a3cb722469e90a676ac00bcd7a9934dbb6e52468.tar.bz2
dexon-0x-contracts-a3cb722469e90a676ac00bcd7a9934dbb6e52468.tar.lz
dexon-0x-contracts-a3cb722469e90a676ac00bcd7a9934dbb6e52468.tar.xz
dexon-0x-contracts-a3cb722469e90a676ac00bcd7a9934dbb6e52468.tar.zst
dexon-0x-contracts-a3cb722469e90a676ac00bcd7a9934dbb6e52468.zip
Fix a bug when we didn't call isNaN function and assumed it's a property
Diffstat (limited to 'packages/utils/src/abi_encoder')
-rw-r--r--packages/utils/src/abi_encoder/utils/math.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils/src/abi_encoder/utils/math.ts b/packages/utils/src/abi_encoder/utils/math.ts
index dd45ea05c..a2a79e2a8 100644
--- a/packages/utils/src/abi_encoder/utils/math.ts
+++ b/packages/utils/src/abi_encoder/utils/math.ts
@@ -14,7 +14,7 @@ function sanityCheckBigNumberRange(
throw new Error(`Tried to assign value of ${value}, which exceeds max value of ${maxValue}`);
} else if (value.isLessThan(minValue)) {
throw new Error(`Tried to assign value of ${value}, which exceeds min value of ${minValue}`);
- } else if (value.isNaN) {
+ } else if (value.isNaN()) {
throw new Error(`Tried to assign NaN value`);
}
}