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:
parent
2a24529413
commit
0981289745
@ -14,7 +14,9 @@ export default class Account extends OceanBase {
|
|||||||
|
|
||||||
public async getEtherBalance(): Promise<number> {
|
public async getEtherBalance(): Promise<number> {
|
||||||
// Logger.log("getting balance for", account);
|
// Logger.log("getting balance for", account);
|
||||||
return Web3Provider.getWeb3().eth
|
return Web3Provider
|
||||||
|
.getWeb3()
|
||||||
|
.eth
|
||||||
.getBalance(this.id, "latest")
|
.getBalance(this.id, "latest")
|
||||||
.then((balance: string): number => {
|
.then((balance: string): number => {
|
||||||
// Logger.log("balance", balance);
|
// Logger.log("balance", balance);
|
||||||
@ -35,7 +37,9 @@ export default class Account extends OceanBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async requestTokens(amount: number): Promise<number> {
|
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
|
return amount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user