aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:40:58 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:40:58 +0800
commitf7236e7f499f59d883603798cda11d3636b26f4a (patch)
treea4ab3fd3758bc179cb16fea8dfa78700f5d309aa /src/utils
parented3d1a8142e6f65480f95df7c3991ae00c757e38 (diff)
downloaddexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.gz
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.bz2
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.lz
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.xz
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.zst
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.zip
Rename senderAccount to senderAddress
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/assert.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts
index d9cf57d1c..6e10c5d40 100644
--- a/src/utils/assert.ts
+++ b/src/utils/assert.ts
@@ -26,14 +26,14 @@ export const assert = {
const web3 = new Web3();
this.assert(web3.isAddress(value), this.typeAssertionMessage(variableName, 'ETHAddressHex', value));
},
- async isSenderAddressHexAsync(variableName: string, senderAccount: string,
+ async isSenderAddressHexAsync(variableName: string, senderAddress: string,
web3Wrapper: Web3Wrapper): Promise<void> {
- assert.isETHAddressHex(variableName, senderAccount);
- await assert.isSenderAccountAvailableAsync(web3Wrapper, senderAccount);
+ assert.isETHAddressHex(variableName, senderAddress);
+ await assert.isSenderAccountAvailableAsync(web3Wrapper, senderAddress);
},
- async isSenderAccountAvailableAsync(web3Wrapper: Web3Wrapper, senderAccount: string): Promise<void> {
- const isSenderAddressAvailable = await web3Wrapper.isSenderAddressAvailableAsync(senderAccount);
- assert.assert(isSenderAddressAvailable, `Specified sender account ${senderAccount} isn't available through the \
+ async isSenderAccountAvailableAsync(web3Wrapper: Web3Wrapper, senderAddress: string): Promise<void> {
+ const isSenderAddressAvailable = await web3Wrapper.isSenderAddressAvailableAsync(senderAddress);
+ assert.assert(isSenderAddressAvailable, `Specified sender account ${senderAddress} isn't available through the \
supplied web3 instance`);
},
isNumber(variableName: string, value: number): void {