Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ledger/allegra/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func TestAllegraBlock_CborRoundTrip_UsingCborEncode(t *testing.T) {
if err != nil {
t.Fatalf("Failed to unmarshal CBOR data into AllegraBlock: %v", err)
}
// Reset stored CBOR to nil
block.SetCbor(nil)

// Re-encode using the cbor Encode function
encoded, err := cbor.Encode(block)
Expand Down
2 changes: 2 additions & 0 deletions ledger/shelley/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func TestShelleyBlock_CborRoundTrip_UsingCborEncode(t *testing.T) {
if err != nil {
t.Fatalf("Failed to unmarshal CBOR data into ShelleyBlock: %v", err)
}
// Reset stored CBOR to nil
block.SetCbor(nil)

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