Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Decapitalize values in GETTransactions response
Browse files Browse the repository at this point in the history
closes #446
  • Loading branch information
cpacia committed Mar 10, 2017
1 parent c00d122 commit 5482c3a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions api/jsonapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -2284,15 +2284,15 @@ func (i *jsonAPIHandler) POSTFetchProfiles(w http.ResponseWriter, r *http.Reques

func (i *jsonAPIHandler) GETTransactions(w http.ResponseWriter, r *http.Request) {
type Tx struct {
Txid string `json:"Txid"`
Value int64 `json:"Value"`
Address string `json:"Address"`
Status string `json:"Status"`
Memo string `json:"Memo"`
Timestamp time.Time `json:"Timestamp"`
Confirmations int32 `json:"Confirmations"`
OrderId string `json:"OrderId"`
Thumbnail string `json:"Thumbnail"`
Txid string `json:"txid"`
Value int64 `json:"value"`
Address string `json:"address"`
Status string `json:"status"`
Memo string `json:"memo"`
Timestamp time.Time `json:"timestamp"`
Confirmations int32 `json:"confirmations"`
OrderId string `json:"orderId"`
Thumbnail string `json:"thumbnail"`
}
transactions, err := i.node.Wallet.Transactions()
if err != nil {
Expand Down

1 comment on commit 5482c3a

@drwasho
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cpacia

Please sign in to comment.