File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ type byronAddressPayload struct {
425
425
426
426
type ByronAddressAttributes struct {
427
427
Payload []byte
428
- Network * uint8
428
+ Network * uint32
429
429
}
430
430
431
431
func (a * ByronAddressAttributes ) UnmarshalCBOR (data []byte ) error {
@@ -438,7 +438,7 @@ func (a *ByronAddressAttributes) UnmarshalCBOR(data []byte) error {
438
438
}
439
439
a .Payload = tmpData .Payload
440
440
if len (tmpData .NetworkRaw ) > 0 {
441
- var tmpNetwork uint8
441
+ var tmpNetwork uint32
442
442
if _ , err := cbor .Decode (tmpData .NetworkRaw , & tmpNetwork ); err != nil {
443
443
return err
444
444
}
Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ func TestByronAddressFromParts(t *testing.T) {
181
181
"5d5e698eba3dd9452add99a1af9461beb0ba61b8bece26e7399878dd" ,
182
182
),
183
183
addressAttr : ByronAddressAttributes {
184
- // We have to jump through this hoop to get an inline pointer to a uint8
185
- Network : func () * uint8 { ret := uint8 (2 ); return & ret }(),
184
+ // We have to jump through this hoop to get an inline pointer to a uint32
185
+ Network : func () * uint32 { ret := uint32 (2 ); return & ret }(),
186
186
},
187
187
expectedAddress : "FHnt4NL7yPXvDWHa8bVs73UEUdJd64VxWXSFNqetECtYfTd9TtJguJ14Lu3feth" ,
188
188
},
You can’t perform that action at this time.
0 commit comments