We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3335233 commit 6226c26Copy full SHA for 6226c26
extras/jsonrpc/daemon.go
@@ -159,7 +159,15 @@ type AccountSettings struct {
159
160
func (d *Client) AccountSet(accountID string, settings AccountSettings) (*Account, error) {
161
response := new(Account)
162
- return response, d.call(response, "account_set", map[string]interface{}{})
+ args := struct {
163
+ AccountID string `json:"account_id"`
164
+ AccountSettings `json:",flatten"`
165
+ }{
166
+ AccountID: accountID,
167
+ AccountSettings: settings,
168
+ }
169
+ structs.DefaultTagName = "json"
170
+ return response, d.call(response, "account_set", structs.Map(args))
171
}
172
173
func (d *Client) AccountBalance(account *string) (*AccountBalanceResponse, error) {
0 commit comments