Skip to content

Commit ab6ed2b

Browse files
committed
fix: use correct type for Byron address network ID
1 parent 474274b commit ab6ed2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ledger/common/address.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ type byronAddressPayload struct {
425425

426426
type ByronAddressAttributes struct {
427427
Payload []byte
428-
Network *uint8
428+
Network *uint64
429429
}
430430

431431
func (a *ByronAddressAttributes) UnmarshalCBOR(data []byte) error {
@@ -438,7 +438,7 @@ func (a *ByronAddressAttributes) UnmarshalCBOR(data []byte) error {
438438
}
439439
a.Payload = tmpData.Payload
440440
if len(tmpData.NetworkRaw) > 0 {
441-
var tmpNetwork uint8
441+
var tmpNetwork uint64
442442
if _, err := cbor.Decode(tmpData.NetworkRaw, &tmpNetwork); err != nil {
443443
return err
444444
}

0 commit comments

Comments
 (0)