File tree Expand file tree Collapse file tree 3 files changed +19
-27
lines changed Expand file tree Collapse file tree 3 files changed +19
-27
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/blinklabs-io/cardano-models
3
3
go 1.21
4
4
5
5
require (
6
- github.com/blinklabs-io/gouroboros v0.88 .0
6
+ github.com/blinklabs-io/gouroboros v0.89 .0
7
7
github.com/fxamacker/cbor/v2 v2.6.0
8
8
github.com/go-playground/validator/v10 v10.22.0
9
9
)
Original file line number Diff line number Diff line change 1
- github.com/blinklabs-io/gouroboros v0.88 .0 h1:LCZ6V5NxO7YxEjOz5eLuKFSNkZX1y70+H7iYoXkEzgY =
2
- github.com/blinklabs-io/gouroboros v0.88 .0 /go.mod h1:1lxsmbJQQMbzta5np5TG0qmb0aNYAeMDvQXcoCwE7XU =
1
+ github.com/blinklabs-io/gouroboros v0.89 .0 h1:EGetVz7u7yrVN6oRP/YmwEQFRVK2I7yvF1GxRv/vlio =
2
+ github.com/blinklabs-io/gouroboros v0.89 .0 /go.mod h1:1lxsmbJQQMbzta5np5TG0qmb0aNYAeMDvQXcoCwE7XU =
3
3
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM =
4
4
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
5
5
github.com/fxamacker/cbor/v2 v2.6.0 h1:sU6J2usfADwWlYDAFhZBQ6TnLFBHxgesMrQfQgk1tWA =
Original file line number Diff line number Diff line change @@ -40,18 +40,14 @@ func (t *TunaV1State) MarshalCBOR() ([]byte, error) {
40
40
tmp := cbor .NewConstructor (
41
41
0 ,
42
42
cbor.IndefLengthList {
43
- Items : []any {
44
- t .BlockNumber ,
45
- t .CurrentHash ,
46
- t .LeadingZeros ,
47
- t .DifficultyNumber ,
48
- t .EpochTime ,
49
- t .RealTimeNow ,
50
- t .Extra ,
51
- cbor.IndefLengthList {
52
- Items : tmpInterlink ,
53
- },
54
- },
43
+ t .BlockNumber ,
44
+ t .CurrentHash ,
45
+ t .LeadingZeros ,
46
+ t .DifficultyNumber ,
47
+ t .EpochTime ,
48
+ t .RealTimeNow ,
49
+ t .Extra ,
50
+ cbor .IndefLengthList (tmpInterlink ),
55
51
},
56
52
)
57
53
return cbor .Encode (& tmp )
@@ -90,18 +86,14 @@ func (t *TunaV2State) MarshalCBOR() ([]byte, error) {
90
86
tmp := cbor .NewConstructor (
91
87
0 ,
92
88
cbor.IndefLengthList {
93
- Items : []any {
94
- t .BlockNumber ,
95
- t .CurrentHash ,
96
- t .LeadingZeros ,
97
- t .DifficultyNumber ,
98
- t .EpochTime ,
99
- t .RealTimeNow ,
100
- cbor.IndefLengthList {
101
- Items : tmpInterlink ,
102
- },
103
- t .Extra ,
104
- },
89
+ t .BlockNumber ,
90
+ t .CurrentHash ,
91
+ t .LeadingZeros ,
92
+ t .DifficultyNumber ,
93
+ t .EpochTime ,
94
+ t .RealTimeNow ,
95
+ cbor .IndefLengthList (tmpInterlink ),
96
+ t .Extra ,
105
97
},
106
98
)
107
99
return cbor .Encode (& tmp )
You can’t perform that action at this time.
0 commit comments