Skip to content
Merged
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
4 changes: 2 additions & 2 deletions ledger/babbage/babbage.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,6 @@ type BabbageTransactionOutput struct {
}

func (o *BabbageTransactionOutput) UnmarshalCBOR(cborData []byte) error {
// Save original CBOR
o.SetCbor(cborData)
// Try to parse as legacy output first
var tmpOutput alonzo.AlonzoTransactionOutput
if _, err := cbor.Decode(cborData, &tmpOutput); err == nil {
Expand All @@ -442,6 +440,8 @@ func (o *BabbageTransactionOutput) UnmarshalCBOR(cborData []byte) error {
}
*o = BabbageTransactionOutput(tmp)
}
// Save original CBOR
o.SetCbor(cborData)
return nil
}

Expand Down
Loading