Skip to content

Commit

Permalink
Fix json marshal float64
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Matt committed Jan 26, 2017
1 parent 864297e commit 55613a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions global.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ Example request:
*/
type APIWalletTransferOrder struct {
Amount float64
Total float64
Amount float64 `json:",string"`
Total float64 `json:",string"`
Currency string
Payment_method string
Agree_btc_amount_varies bool
Expand Down
2 changes: 1 addition & 1 deletion transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (a *APIClient) GetTransaction(id, transId string) (trans APITransaction, er
type APITransactionsSend struct {
Type string
To string
Amount float64
Amount float64 `json:",string"`
Currency string
}
// SendTransferRequestMoney requires an account ID, APITransactionsSend struct
Expand Down

0 comments on commit 55613a6

Please sign in to comment.