Skip to content

Commit

Permalink
fix: use correct type for Byron address network ID
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney committed Jan 9, 2025
1 parent 474274b commit ab6ed2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ledger/common/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ type byronAddressPayload struct {

type ByronAddressAttributes struct {
Payload []byte
Network *uint8
Network *uint64
}

func (a *ByronAddressAttributes) UnmarshalCBOR(data []byte) error {
Expand All @@ -438,7 +438,7 @@ func (a *ByronAddressAttributes) UnmarshalCBOR(data []byte) error {
}
a.Payload = tmpData.Payload
if len(tmpData.NetworkRaw) > 0 {
var tmpNetwork uint8
var tmpNetwork uint64
if _, err := cbor.Decode(tmpData.NetworkRaw, &tmpNetwork); err != nil {
return err
}
Expand Down

0 comments on commit ab6ed2b

Please sign in to comment.