diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-07 01:18:38 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-07 01:18:38 +0800 |
commit | b1667cdd89417f834582cb265f3b631cb57d1f1e (patch) | |
tree | 8b17b1733985d70c79ef98a34df001dedbb974f5 /src/utils | |
parent | 87f2658fc986504a9117530ae15c517eadf57ed7 (diff) | |
download | dexon-sol-tools-b1667cdd89417f834582cb265f3b631cb57d1f1e.tar dexon-sol-tools-b1667cdd89417f834582cb265f3b631cb57d1f1e.tar.gz dexon-sol-tools-b1667cdd89417f834582cb265f3b631cb57d1f1e.tar.bz2 dexon-sol-tools-b1667cdd89417f834582cb265f3b631cb57d1f1e.tar.lz dexon-sol-tools-b1667cdd89417f834582cb265f3b631cb57d1f1e.tar.xz dexon-sol-tools-b1667cdd89417f834582cb265f3b631cb57d1f1e.tar.zst dexon-sol-tools-b1667cdd89417f834582cb265f3b631cb57d1f1e.zip |
Fix comments to use web3 provider instead of web3 instance
Diffstat (limited to 'src/utils')
-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 b3c30c11d..00415602d 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -43,12 +43,12 @@ export const assert = { assert.isETHAddressHex(variableName, senderAddressHex); const isSenderAddressAvailable = await web3Wrapper.isSenderAddressAvailableAsync(senderAddressHex); assert.assert(isSenderAddressAvailable, - `Specified ${variableName} ${senderAddressHex} isn't available through the supplied web3 instance`, + `Specified ${variableName} ${senderAddressHex} isn't available through the supplied web3 provider`, ); }, async isUserAddressAvailableAsync(web3Wrapper: Web3Wrapper): Promise<void> { const availableAddresses = await web3Wrapper.getAvailableAddressesAsync(); - this.assert(!_.isEmpty(availableAddresses), 'No addresses were available on the provided web3 instance'); + this.assert(!_.isEmpty(availableAddresses), 'No addresses were available on the provided web3 provider'); }, hasAtMostOneUniqueValue(value: any[], errMsg: string): void { this.assert(_.uniq(value).length <= 1, errMsg); |