diff options
-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}'`); |