Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Jan 29, 2025
1 parent 34615be commit 20476e0
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
default: patch
default: major
---

# Fixed a panic when unmarshalling unknown spend policy types

An error will now be returned when trying to encode a transaction with an unset `SpendPolicy`
4 changes: 4 additions & 0 deletions types/types_test.go
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ import (
"math"
"strings"
"testing"
"time"

"lukechampine.com/frand"
)
@@ -808,6 +809,9 @@ func TestV2TransactionJSONMarshalling(t *testing.T) {
LeafIndex: frand.Uint64n(math.MaxUint64),
},
},
SatisfiedPolicy: SatisfiedPolicy{
Policy: PolicyAfter(time.Now()),
},
},
},
}

0 comments on commit 20476e0

Please sign in to comment.