From 029179a7be09bde4e0d8d3ca79b0aab41e47d084 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Fri, 26 Jul 2024 14:35:36 -0700 Subject: [PATCH] wallet: add missing inflow and outflow unmarshal --- wallet/events.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wallet/events.go b/wallet/events.go index 89cc0c0..061156f 100644 --- a/wallet/events.go +++ b/wallet/events.go @@ -95,9 +95,12 @@ func (e *Event) UnmarshalJSON(b []byte) error { e.ID = je.ID e.Index = je.Index - e.Timestamp = je.Timestamp - e.MaturityHeight = je.MaturityHeight + e.Inflow = je.Inflow + e.Outflow = je.Outflow e.Type = je.Type + // Data is unmarshaled based on the event type below + e.MaturityHeight = je.MaturityHeight + e.Timestamp = je.Timestamp var err error switch je.Type {