We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b227b commit 7d4fc0bCopy full SHA for 7d4fc0b
ledger/babbage/babbage.go
@@ -425,8 +425,6 @@ type BabbageTransactionOutput struct {
425
}
426
427
func (o *BabbageTransactionOutput) UnmarshalCBOR(cborData []byte) error {
428
- // Save original CBOR
429
- o.SetCbor(cborData)
430
// Try to parse as legacy output first
431
var tmpOutput alonzo.AlonzoTransactionOutput
432
if _, err := cbor.Decode(cborData, &tmpOutput); err == nil {
@@ -442,6 +440,8 @@ func (o *BabbageTransactionOutput) UnmarshalCBOR(cborData []byte) error {
442
440
443
441
*o = BabbageTransactionOutput(tmp)
444
+ // Save original CBOR
+ o.SetCbor(cborData)
445
return nil
446
447
0 commit comments