File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,12 @@ func (d *Client) SingleAccountList(accountID string) (*Account, error) {
149149}
150150
151151type AccountSettings struct {
152- Default bool `json:"default"`
153- NewName string `json:"new_name"`
154- ReceivingGap int `json:"receiving_gap"`
155- ReceivingMaxUses int `json:"receiving_max_uses"`
156- ChangeGap int `json:"change_gap"`
157- ChangeMaxUses int `json:"change_max_uses"`
152+ Default * bool `json:"default,omitempty "`
153+ NewName * string `json:"new_name,omitempty "`
154+ ReceivingGap * int `json:"receiving_gap,omitempty "`
155+ ReceivingMaxUses * int `json:"receiving_max_uses,omitempty "`
156+ ChangeGap * int `json:"change_gap,omitempty "`
157+ ChangeMaxUses * int `json:"change_max_uses,omitempty "`
158158}
159159
160160func (d * Client ) AccountSet (accountID string , settings AccountSettings ) (* Account , error ) {
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ func TestClient_AccountSet(t *testing.T) {
350350 }
351351 account := (accounts .LBCRegtest )[0 ].ID
352352
353- got , err := d .AccountSet (account , AccountSettings {ChangeMaxUses : 10000 })
353+ got , err := d .AccountSet (account , AccountSettings {ChangeMaxUses : util . PtrToInt ( 10000 ) })
354354 if err != nil {
355355 t .Error (err )
356356 return
You can’t perform that action at this time.
0 commit comments