Skip to content

Commit

Permalink
fix: remove redundant metadata cbor
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 committed Aug 21, 2023
1 parent fc19da7 commit b133799
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions input/chainsync/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type TransactionEvent struct {
Inputs []ledger.TransactionInput `json:"inputs"`
Outputs []ledger.TransactionOutput `json:"outputs"`
Metadata *cbor.Value `json:"metadata,omitempty"`
MetadataCbor byteSliceJsonHex `json:"metadataCbor,omitempty"`
}

func NewTransactionEvent(block ledger.Block, tx ledger.Transaction, includeCbor bool) TransactionEvent {
Expand All @@ -45,9 +44,6 @@ func NewTransactionEvent(block ledger.Block, tx ledger.Transaction, includeCbor
}
if tx.Metadata() != nil {
evt.Metadata = tx.Metadata()
if includeCbor {
evt.MetadataCbor = tx.Metadata().Cbor()
}
}
return evt
}

0 comments on commit b133799

Please sign in to comment.