diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-03 02:33:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-03 02:33:50 +0800 |
commit | 054797fa5185acb352a8a95d341c6af3f40346da (patch) | |
tree | d447f36c1eecfefe8bf6c4d9905084e6550f66f2 /src | |
parent | 1443c0838cbd795ae8e6273b1d7659c8e449f2eb (diff) | |
download | dexon-sol-tools-054797fa5185acb352a8a95d341c6af3f40346da.tar dexon-sol-tools-054797fa5185acb352a8a95d341c6af3f40346da.tar.gz dexon-sol-tools-054797fa5185acb352a8a95d341c6af3f40346da.tar.bz2 dexon-sol-tools-054797fa5185acb352a8a95d341c6af3f40346da.tar.lz dexon-sol-tools-054797fa5185acb352a8a95d341c6af3f40346da.tar.xz dexon-sol-tools-054797fa5185acb352a8a95d341c6af3f40346da.tar.zst dexon-sol-tools-054797fa5185acb352a8a95d341c6af3f40346da.zip |
Add missing async suffix
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/assert.ts | 2 | ||||
-rw-r--r-- | src/web3_wrapper.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts index 7dffcd98e..446974b10 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -26,7 +26,7 @@ export const assert = { this.assert(web3.isAddress(value), this.typeAssertionMessage(variableName, 'ETHAddressHex', value)); }, async isSenderAddressAvailableAsync(web3Wrapper: Web3Wrapper, senderAddress: string) { - const isSenderAddressAvailable = await web3Wrapper.isSenderAddressAvailable(senderAddress); + const isSenderAddressAvailable = await web3Wrapper.isSenderAddressAvailableAsync(senderAddress); assert.assert(isSenderAddressAvailable, 'Specified senderAddress isn\'t available through the \ supplied web3 instance'); }, diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts index 625a1dead..9892abcb8 100644 --- a/src/web3_wrapper.ts +++ b/src/web3_wrapper.ts @@ -35,7 +35,7 @@ export class Web3Wrapper { } return addresses[0]; } - public async isSenderAddressAvailable(senderAddress: string): Promise<boolean> { + public async isSenderAddressAvailableAsync(senderAddress: string): Promise<boolean> { const addresses = await this.getAvailableSenderAddressesAsync(); return _.includes(addresses, senderAddress); } |