From ab6ed2b75e920f937cac7c954bf98f4a5704b2b1 Mon Sep 17 00:00:00 2001 From: Aurora Gaffney Date: Thu, 9 Jan 2025 17:11:18 -0600 Subject: [PATCH] fix: use correct type for Byron address network ID --- ledger/common/address.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledger/common/address.go b/ledger/common/address.go index cad37c59..3921ad7e 100644 --- a/ledger/common/address.go +++ b/ledger/common/address.go @@ -425,7 +425,7 @@ type byronAddressPayload struct { type ByronAddressAttributes struct { Payload []byte - Network *uint8 + Network *uint64 } func (a *ByronAddressAttributes) UnmarshalCBOR(data []byte) error { @@ -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 }