aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/assert.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-07-07 05:51:44 +0800
committerGitHub <noreply@github.com>2017-07-07 05:51:44 +0800
commit18050b7ea3eae19626a7976c004b237287ff5363 (patch)
treebde30c03faf91a4385cfa1393a143c2281ee97b1 /src/utils/assert.ts
parentf2611d5b2be4c4c1b8bcfc9c964a13faf2329316 (diff)
parent9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc (diff)
downloaddexon-0x-contracts-18050b7ea3eae19626a7976c004b237287ff5363.tar.gz
dexon-0x-contracts-18050b7ea3eae19626a7976c004b237287ff5363.tar.zst
dexon-0x-contracts-18050b7ea3eae19626a7976c004b237287ff5363.zip
Merge pull request #94 from 0xProject/moveExchangeAddressGetters
Moves exchange contract address getters to zeroEx top level
Diffstat (limited to 'src/utils/assert.ts')
-rw-r--r--src/utils/assert.ts4
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);