Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST client: always set Exclude value in accountInformationParams #3728

Merged
merged 2 commits into from
Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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