diff --git a/extras/jsonrpc/daemon.go b/extras/jsonrpc/daemon.go index 17d979d..31f478c 100644 --- a/extras/jsonrpc/daemon.go +++ b/extras/jsonrpc/daemon.go @@ -182,15 +182,10 @@ func (d *Client) AccountFund(fromAccount string, toAccount string, amount string func (d *Client) AccountCreate(accountName string, singleKey bool) (*AccountCreateResponse, error) { response := new(AccountCreateResponse) - args := struct { - AccountName string `json:"account_name"` - SingleKey bool `json:"single_key"` - }{ - AccountName: accountName, - SingleKey: singleKey, - } - structs.DefaultTagName = "json" - return response, d.call(response, "account_create", structs.Map(args)) + return response, d.call(response, "account_create", map[string]interface{}{ + "account_name": accountName, + "single_key": singleKey, + }) } func (d *Client) AccountRemove(accountID string) (*AccountRemoveResponse, error) { diff --git a/extras/jsonrpc/daemon_types.go b/extras/jsonrpc/daemon_types.go index cb174a6..cf357f2 100644 --- a/extras/jsonrpc/daemon_types.go +++ b/extras/jsonrpc/daemon_types.go @@ -213,12 +213,13 @@ type AccountListResponse struct { type AccountBalanceResponse string type AccountCreateResponse struct { - ID string `json:"id"` - Name string `json:"name"` - PublicKey string `json:"public_key"` - PrivateKey string `json:"private_key"` - Seed string `json:"seed"` - Ledger string `json:"ledger"` + ID string `json:"id"` + Name string `json:"name"` + PublicKey string `json:"public_key"` + PrivateKey string `json:"private_key"` + Seed string `json:"seed"` + Ledger string `json:"ledger"` + ModifiedOn float64 `json:"modified_on"` } type AccountRemoveResponse AccountCreateResponse