aboutsummaryrefslogtreecommitdiffstats
path: root/packages/assert/src/index.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-28 02:24:36 +0800
committerGitHub <noreply@github.com>2018-02-28 02:24:36 +0800
commit593474031d7faf4242c76aa22defea8ea76e9e90 (patch)
tree41c931b6c07ea28222a98e9e7f051159542ce027 /packages/assert/src/index.ts
parent7f8f4df0a01123e4fb414b3d5b70d0ed3115a4da (diff)
parentfce10548d2d992317e36af48638a5ee799e94e7c (diff)
downloaddexon-sol-tools-593474031d7faf4242c76aa22defea8ea76e9e90.tar.gz
dexon-sol-tools-593474031d7faf4242c76aa22defea8ea76e9e90.tar.zst
dexon-sol-tools-593474031d7faf4242c76aa22defea8ea76e9e90.zip
Merge branch 'development' into fix/unsubscribeAll
Diffstat (limited to 'packages/assert/src/index.ts')
-rw-r--r--packages/assert/src/index.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/assert/src/index.ts b/packages/assert/src/index.ts
index 4d090e493..40d083cb6 100644
--- a/packages/assert/src/index.ts
+++ b/packages/assert/src/index.ts
@@ -33,11 +33,8 @@ export const assert = {
);
},
isETHAddressHex(variableName: string, value: string): void {
+ this.assert(_.isString(value), this.typeAssertionMessage(variableName, 'string', value));
this.assert(addressUtils.isAddress(value), this.typeAssertionMessage(variableName, 'ETHAddressHex', value));
- this.assert(
- addressUtils.isAddress(value) && value.toLowerCase() === value,
- `Checksummed addresses are not supported. Convert ${variableName} to lower case before passing`,
- );
},
doesBelongToStringEnum(
variableName: string,