aboutsummaryrefslogtreecommitdiffstats
path: root/src/web3_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:48:00 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:48:00 +0800
commit67e2208a1822732ea125af0c4cd757b9f735ce86 (patch)
tree0582c6a5ce6170ae568bbadbfbec043ba9c26ef5 /src/web3_wrapper.ts
parent279790117be882186685c04099e3d46ec68991b6 (diff)
downloaddexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.gz
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.bz2
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.lz
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.xz
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.tar.zst
dexon-sol-tools-67e2208a1822732ea125af0c4cd757b9f735ce86.zip
Rename accounts to addreses
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r--src/web3_wrapper.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts
index 2508c5116..e1bb29f85 100644
--- a/src/web3_wrapper.ts
+++ b/src/web3_wrapper.ts
@@ -17,14 +17,14 @@ export class Web3Wrapper {
public isAddress(address: string): boolean {
return this.web3.isAddress(address);
}
- public getDefaultAccount(): string {
+ public getDefaultAddress(): string {
return this.web3.eth.defaultAccount;
}
- public setDefaultAccount(address: string): void {
+ public setDefaultAddress(address: string): void {
this.web3.eth.defaultAccount = address;
}
public async isSenderAddressAvailableAsync(senderAddress: string): Promise<boolean> {
- const addresses = await this.getAvailableAccountsAsync();
+ const addresses = await this.getAvailableAddressesAsync();
return _.includes(addresses, senderAddress);
}
public async getNodeVersionAsync(): Promise<string> {
@@ -61,7 +61,7 @@ export class Web3Wrapper {
const {timestamp} = await promisify(this.web3.eth.getBlock)(blockHash);
return timestamp;
}
- public async getAvailableAccountsAsync(): Promise<string[]> {
+ public async getAvailableAddressesAsync(): Promise<string[]> {
const addresses: string[] = await promisify(this.web3.eth.getAccounts)();
return addresses;
}