From d131fe82fb6920c4ebb2a4e0e2859bf83575b295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Aasted=20S=C3=B8rensen?= Date: Wed, 4 Nov 2020 20:39:43 +0100 Subject: [PATCH] Deliver correct JSON when serializing --- x/market/types/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/market/types/types.go b/x/market/types/types.go index b1e12092..ad724520 100644 --- a/x/market/types/types.go +++ b/x/market/types/types.go @@ -68,7 +68,7 @@ func (o Order) MarshalJSON() ([]byte, error) { s := fmt.Sprintf(` { "id": %v, - "time_in_force" : %v, + "time_in_force" : "%v", "owner": "%v", "client_order_id": "%v", "price": "%v", @@ -82,7 +82,7 @@ func (o Order) MarshalJSON() ([]byte, error) { "denom": "%v", "amount": "%v" }, - "destination_filled": "%v", + "destination_filled": "%v" } `, o.ID,