Skip to content

Commit

Permalink
Resolve Comments
Browse files Browse the repository at this point in the history
    - Rename `Client.GetInfo()` to `Client.GetAccountInfo()`
    - Rename `Client.GetBalance()` to `Client.GetAccountBalance()`
  • Loading branch information
janaakhterov committed Dec 18, 2019
1 parent 9c12fd9 commit 26ca2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ func (client *Client) SetMaxQueryPayment(tinyBars uint64) *Client {
return client
}

func (client *Client) GetInfo() (AccountInfo, error) {
func (client *Client) GetAccountInfo() (AccountInfo, error) {
return NewAccountInfoQuery().
SetAccountID(client.operator.accountID).
Execute(client)
}

func (client *Client) GetBalance() (uint64, error) {
func (client *Client) GetAccountBalance() (uint64, error) {
return NewAccountBalanceQuery().
SetAccountID(client.operator.accountID).
Execute(client)
Expand Down

0 comments on commit 26ca2cb

Please sign in to comment.