Skip to content

Commit 8ed717d

Browse files
authored
test(ledger): empty block cbor for byron round-trip test (#1283)
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
1 parent 697f387 commit 8ed717d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ledger/byron/block_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ func TestByronBlock_CborRoundTrip_UsingCborEncode(t *testing.T) {
5050
if err != nil {
5151
t.Fatalf("Failed to unmarshal CBOR data into ByronBlock: %v", err)
5252
}
53+
// Reset stored CBOR to nil
54+
block.SetCbor(nil)
5355

5456
// Re-encode using the cbor Encode function
5557
encoded, err := cbor.Encode(block)

0 commit comments

Comments
 (0)