diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 21:13:03 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 21:13:03 +0800 |
commit | f54b513935dbba0dd1922566ed2fd4b4acbf6459 (patch) | |
tree | 8e1eac86923729adda647332c32052ff394c9bac /src/utils/assert.ts | |
parent | 0dfc2b5f3b81e034a9c939f667383eb03c9a5561 (diff) | |
download | dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.gz dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.bz2 dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.lz dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.xz dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.tar.zst dexon-sol-tools-f54b513935dbba0dd1922566ed2fd4b4acbf6459.zip |
Address feedback
Diffstat (limited to 'src/utils/assert.ts')
-rw-r--r-- | src/utils/assert.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts index 7ab1b7c62..f4d653ffb 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -37,9 +37,9 @@ export const assert = { assert.assert(isSenderAddressAvailable, `Specified ${variableName} ${senderAddressHex} isn't available \ through the supplied web3 instance`); }, - async isAnyAddressAvailableAsync(web3Wrapper: Web3Wrapper): Promise<void> { + async isUserAddressAvailableAsync(web3Wrapper: Web3Wrapper): Promise<void> { const availableAddresses = await web3Wrapper.getAvailableAddressesAsync(); - this.assert(!_.isEmpty(availableAddresses), 'No addresses are available on the provided web3 instance'); + this.assert(!_.isEmpty(availableAddresses), 'No addresses were available on the provided web3 instance'); }, isNumber(variableName: string, value: number): void { this.assert(_.isFinite(value), this.typeAssertionMessage(variableName, 'number', value)); |