Skip to content

Commit 6226c26

Browse files
committed
really fix account_set
1 parent 3335233 commit 6226c26

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

extras/jsonrpc/daemon.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,15 @@ type AccountSettings struct {
159159

160160
func (d *Client) AccountSet(accountID string, settings AccountSettings) (*Account, error) {
161161
response := new(Account)
162-
return response, d.call(response, "account_set", map[string]interface{}{})
162+
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))
163171
}
164172

165173
func (d *Client) AccountBalance(account *string) (*AccountBalanceResponse, error) {

0 commit comments

Comments
 (0)