aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/assert.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-10-10 19:15:57 +0800
committerGitHub <noreply@github.com>2017-10-10 19:15:57 +0800
commit056e0f26abb36774a3f6cbdb4429eaeff735a270 (patch)
tree77a413fe5b26e1993e890a19c15830b2e8103615 /src/utils/assert.ts
parentf38d2f80a6e3af4ff7e2454d42abdf2a389e4303 (diff)
parentbda979a6c7e825446adce2d6d3b4800b5012a08d (diff)
downloaddexon-sol-tools-056e0f26abb36774a3f6cbdb4429eaeff735a270.tar
dexon-sol-tools-056e0f26abb36774a3f6cbdb4429eaeff735a270.tar.gz
dexon-sol-tools-056e0f26abb36774a3f6cbdb4429eaeff735a270.tar.bz2
dexon-sol-tools-056e0f26abb36774a3f6cbdb4429eaeff735a270.tar.lz
dexon-sol-tools-056e0f26abb36774a3f6cbdb4429eaeff735a270.tar.xz
dexon-sol-tools-056e0f26abb36774a3f6cbdb4429eaeff735a270.tar.zst
dexon-sol-tools-056e0f26abb36774a3f6cbdb4429eaeff735a270.zip
Merge pull request #185 from 0xProject/fix/batch-validation
Fix batch validation
Diffstat (limited to 'src/utils/assert.ts')
-rw-r--r--src/utils/assert.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts
index 0b7a11939..099f4490f 100644
--- a/src/utils/assert.ts
+++ b/src/utils/assert.ts
@@ -28,7 +28,7 @@ export const assert = {
const web3 = new Web3();
this.assert(web3.isAddress(value), this.typeAssertionMessage(variableName, 'ETHAddressHex', value));
this.assert(
- web3.isAddress(value) && !web3.isChecksumAddress(value),
+ web3.isAddress(value) && value.toLowerCase() === value,
`Checksummed addresses are not supported. Convert ${variableName} to lower case before passing`,
);
},