Skip to content

Commit

Permalink
REST client: always set Exclude value in accountInformationParams (#3728
Browse files Browse the repository at this point in the history
)

* nit: always set Exclude value in accountInformationParams

* fix comments from CR
  • Loading branch information
cce authored Mar 25, 2022
1 parent e3fd274 commit 9688e8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion daemon/algod/api/client/restClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func (client RestClient) AccountInformation(address string) (response v1.Account
func (client RestClient) AccountInformationV2(address string, includeCreatables bool) (response generatedV2.Account, err error) {
var infoParams accountInformationParams
if includeCreatables {
infoParams = accountInformationParams{Exclude: "", Format: "json"}
infoParams = accountInformationParams{Exclude: "none", Format: "json"}
} else {
infoParams = accountInformationParams{Exclude: "all", Format: "json"}
}
Expand Down
4 changes: 2 additions & 2 deletions libgoal/libgoal.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func (c *Client) RawAccountApplicationInformation(accountAddress string, applica
return
}

// AccountAssetInformation gets account information about a given app.
// AccountAssetInformation gets account information about a given asset.
func (c *Client) AccountAssetInformation(accountAddress string, assetID uint64) (resp generatedV2.AccountAssetResponse, err error) {
algod, err := c.ensureAlgodClient()
if err == nil {
Expand All @@ -696,7 +696,7 @@ func (c *Client) AccountAssetInformation(accountAddress string, assetID uint64)
return
}

// RawAccountAssetInformation gets account information about a given app.
// RawAccountAssetInformation gets account information about a given asset.
func (c *Client) RawAccountAssetInformation(accountAddress string, assetID uint64) (accountResource modelV2.AccountAssetModel, err error) {
algod, err := c.ensureAlgodClient()
if err == nil {
Expand Down

0 comments on commit 9688e8f

Please sign in to comment.