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
6 changes: 5 additions & 1 deletion ledger/common/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ func (a *Address) UnmarshalCBOR(data []byte) error {
}

func (a *Address) MarshalCBOR() ([]byte, error) {
return cbor.Encode(a.Bytes())
addrBytes := a.Bytes()
if a.addressType == AddressTypeByron {
return addrBytes, nil
}
return cbor.Encode(addrBytes)
}

// PaymentAddress returns a new Address with only the payment address portion. This will return nil for anything other than payment and script addresses
Expand Down
Loading