Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatureDev committed May 19, 2023
1 parent f4021aa commit e103754
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion model/client/admin/key/wallet_propose_request.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package key

type WalletProposeRequest struct {
KeyType string `json:"key_type"`
KeyType string `json:"key_type,omitempty"`
Passphrase string `json:"passphrase,omitempty"`
Seed string `json:"seed,omitempty"`
SeedHex string `json:"seed_hex,omitempty"`
Expand Down
3 changes: 2 additions & 1 deletion model/client/admin/peer/peers_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ type Peer struct {
Latency int `json:"latency"`
Ledger string `json:"ledger"`
Load int `json:"load"`
Protocol string `json:"protocol,omitempty"`
Metrics Metrics `json:"metrics"`
PublicKey string `json:"public_key,omitempty"`
Sanity string `json:"sanity,omitempty"`
Status string `json:"status,omitempty"`
Uptime uint `json:"uptime"`
Version string `json:"version"`
Version string `json:"version,omitempty"`
}

type Metrics struct {
Expand Down
2 changes: 1 addition & 1 deletion model/client/admin/signing/sign_for_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type SignForRequest struct {
}

func (*SignForRequest) Method() string {
return "sign"
return "sign_for"
}

func (r *SignForRequest) UnmarshalJSON(data []byte) error {
Expand Down

0 comments on commit e103754

Please sign in to comment.