Skip to content

Commit

Permalink
Merge pull request #74 from SiaFoundation/nate/event-unmarshal
Browse files Browse the repository at this point in the history
Add missing inflow and outflow unmarshal
  • Loading branch information
n8maninger authored Jul 26, 2024
2 parents 531b658 + 029179a commit d305be1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wallet/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d305be1

Please sign in to comment.