Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions ledger/byron/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"slices"
"strconv"

"github.com/blinklabs-io/gouroboros/cbor"
"github.com/blinklabs-io/gouroboros/ledger/common"
)

Expand Down Expand Up @@ -123,7 +122,7 @@ func (g *ByronGenesis) avvmUtxos() ([]common.Utxo, error) {
if err != nil {
return nil, err
}
addrBytes, err := cbor.Encode(tmpAddr)
addrBytes, err := tmpAddr.Bytes()
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -155,7 +154,7 @@ func (g *ByronGenesis) nonAvvmUtxos() ([]common.Utxo, error) {
if err != nil {
return nil, err
}
addrBytes, err := cbor.Encode(tmpAddr)
addrBytes, err := tmpAddr.Bytes()
if err != nil {
return nil, err
}
Expand Down
4 changes: 0 additions & 4 deletions ledger/common/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,6 @@ func (a *Address) MarshalCBOR() ([]byte, error) {
if err != nil {
return nil, fmt.Errorf("failed to get address bytes: %w", err)
}

if a.addressType == AddressTypeByron {
return addrBytes, nil
}
return cbor.Encode(addrBytes)
}

Expand Down
Loading