aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-12 09:12:35 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-12 09:12:35 +0800
commitb376f031020f6e318d4ddd49ecdecc8d1a4fe48d (patch)
tree83c1b94335a9aba4be957b5f168524033943584f /src
parent468c95a4c2f5a153fe4d8cf34fe09d6e07550e05 (diff)
downloaddexon-sol-tools-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.tar
dexon-sol-tools-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.tar.gz
dexon-sol-tools-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.tar.bz2
dexon-sol-tools-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.tar.lz
dexon-sol-tools-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.tar.xz
dexon-sol-tools-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.tar.zst
dexon-sol-tools-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.zip
Add a comment explaining any
Diffstat (limited to 'src')
-rw-r--r--src/utils/assert.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts
index 9ac021d4a..dab796c4e 100644
--- a/src/utils/assert.ts
+++ b/src/utils/assert.ts
@@ -26,7 +26,8 @@ export const assert = {
const web3 = new Web3();
this.assert(web3.isAddress(value), this.typeAssertionMessage(variableName, 'ETHAddressHex', value));
},
- doesBelongToStringEnum(variableName: string, value: string, stringEnum: any): void {
+ doesBelongToStringEnum(variableName: string, value: string,
+ stringEnum: any /* There is no base type for every string enum */): void {
const doesBelongToStringEnum = !_.isUndefined(stringEnum[value]);
const enumValues = _.keys(stringEnum);
const enumValuesAsStrings = _.map(enumValues, enumValue => `'${enumValue}'`);