Skip to content

Commit

Permalink
fix mismatch between document and actual returned content types
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0001 committed Sep 9, 2024
1 parent cccce40 commit 81e3790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v2/futures/convert_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (c *ConvertStatusService) OrderId(orderId string) *ConvertStatusService {
}

type ConvertStatusResult struct {
OrderId int64 `json:"orderId"`
OrderId string `json:"orderId"`
OrderStatus ConvertAcceptStatus `json:"orderStatus"`
FromAsset string `json:"fromAsset"`
FromAmount string `json:"fromAmount"`
Expand Down
4 changes: 2 additions & 2 deletions v2/futures/convert_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (s *convertServiceTestSuite) TestAcceptQuote() {

func (s *convertServiceTestSuite) TestGetConvertStatus() {
data := []byte(`{
"orderId":933256278426274426,
"orderId":"933256278426274426",
"orderStatus":"SUCCESS",
"fromAsset":"BTC",
"fromAmount":"0.00054414",
Expand All @@ -112,7 +112,7 @@ func (s *convertServiceTestSuite) TestGetConvertStatus() {
orderId := "933256278426274426"
res, err := s.client.NewGetConvertStatusService().OrderId(orderId).Do(newContext())
s.r().NoError(err)
s.r().Equal(int64(933256278426274426), res.OrderId)
s.r().Equal("933256278426274426", res.OrderId)
s.r().Equal(ConvertAcceptStatusSuccess, res.OrderStatus)
s.r().Equal("BTC", res.FromAsset)
s.r().Equal("0.00054414", res.FromAmount)
Expand Down

0 comments on commit 81e3790

Please sign in to comment.