From ffe3650a0f624fc938fcf6f4a96bb7826b53d7c5 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Thu, 21 Jun 2018 13:53:27 +0200 Subject: [PATCH] Unmarshal empty addresses as empty slice not as nil --- bchain/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bchain/types.go b/bchain/types.go index 582e50b3..40cff440 100644 --- a/bchain/types.go +++ b/bchain/types.go @@ -32,14 +32,14 @@ type Vin struct { Vout uint32 `json:"vout"` ScriptSig ScriptSig `json:"scriptSig"` Sequence uint32 `json:"sequence"` - Addresses []string `json:"addresses,omitempty"` + Addresses []string `json:"addresses"` } type ScriptPubKey struct { // Asm string `json:"asm"` Hex string `json:"hex,omitempty"` // Type string `json:"type"` - Addresses []string `json:"addresses,omitempty"` + Addresses []string `json:"addresses"` } type Address interface {