diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 20:56:54 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 20:56:54 +0800 |
commit | 0dfc2b5f3b81e034a9c939f667383eb03c9a5561 (patch) | |
tree | c1ad14d297cb6c03d4b3b73668a467c4cd81f549 /src/web3_wrapper.ts | |
parent | ef57dd22e29057e5bd84b9a0ad36a123126695df (diff) | |
download | dexon-sol-tools-0dfc2b5f3b81e034a9c939f667383eb03c9a5561.tar dexon-sol-tools-0dfc2b5f3b81e034a9c939f667383eb03c9a5561.tar.gz dexon-sol-tools-0dfc2b5f3b81e034a9c939f667383eb03c9a5561.tar.bz2 dexon-sol-tools-0dfc2b5f3b81e034a9c939f667383eb03c9a5561.tar.lz dexon-sol-tools-0dfc2b5f3b81e034a9c939f667383eb03c9a5561.tar.xz dexon-sol-tools-0dfc2b5f3b81e034a9c939f667383eb03c9a5561.tar.zst dexon-sol-tools-0dfc2b5f3b81e034a9c939f667383eb03c9a5561.zip |
Add isAnyAddressAvailableAsync
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r-- | src/web3_wrapper.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts index e1bb29f85..05a8dc063 100644 --- a/src/web3_wrapper.ts +++ b/src/web3_wrapper.ts @@ -17,12 +17,6 @@ export class Web3Wrapper { public isAddress(address: string): boolean { return this.web3.isAddress(address); } - public getDefaultAddress(): string { - return this.web3.eth.defaultAccount; - } - public setDefaultAddress(address: string): void { - this.web3.eth.defaultAccount = address; - } public async isSenderAddressAvailableAsync(senderAddress: string): Promise<boolean> { const addresses = await this.getAvailableAddressesAsync(); return _.includes(addresses, senderAddress); |