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 28cadd7 commit eedb336Copy full SHA for eedb336
protocol/localstatequery/queries.go
@@ -529,6 +529,23 @@ func (u *UtxoId) UnmarshalCBOR(data []byte) error {
529
return nil
530
}
531
532
+func (u *UtxoId) MarshalCBOR() ([]byte, error) {
533
+ var tmpData []any
534
+ if u.DatumHash == ledger.NewBlake2b256(nil) {
535
+ tmpData = []any{
536
+ u.Hash,
537
+ u.Idx,
538
+ }
539
+ } else {
540
541
542
543
+ u.DatumHash,
544
545
546
+ return cbor.Encode(tmpData)
547
+}
548
+
549
// TODO
550
/*
551
result [{* utxo => value }]
0 commit comments