1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

changed formatting

This commit is contained in:
Sebastian Gerske 2018-11-27 12:27:15 +01:00
parent 2a24529413
commit 0981289745

View File

@ -14,7 +14,9 @@ export default class Account extends OceanBase {
public async getEtherBalance(): Promise<number> {
// Logger.log("getting balance for", account);
return Web3Provider.getWeb3().eth
return Web3Provider
.getWeb3()
.eth
.getBalance(this.id, "latest")
.then((balance: string): number => {
// Logger.log("balance", balance);
@ -35,7 +37,9 @@ export default class Account extends OceanBase {
}
public async requestTokens(amount: number): Promise<number> {
await (await Keeper.getInstance()).market.requestTokens(amount, this.id)
await (await Keeper.getInstance())
.market
.requestTokens(amount, this.id)
return amount
}