diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-12 09:12:35 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-12 09:12:35 +0800 |
commit | b376f031020f6e318d4ddd49ecdecc8d1a4fe48d (patch) | |
tree | 83c1b94335a9aba4be957b5f168524033943584f /src | |
parent | 468c95a4c2f5a153fe4d8cf34fe09d6e07550e05 (diff) | |
download | dexon-0x-contracts-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.tar.gz dexon-0x-contracts-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.tar.zst dexon-0x-contracts-b376f031020f6e318d4ddd49ecdecc8d1a4fe48d.zip |
Add a comment explaining any
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/assert.ts | 3 |
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}'`); |