Skip to content

Commit

Permalink
chore(deps): update blinklabs-io/gouroboros to v0.89.0 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney authored Jun 24, 2024
1 parent 112e622 commit 75aceba
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 27 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/blinklabs-io/cardano-models
go 1.21

require (
github.com/blinklabs-io/gouroboros v0.88.0
github.com/blinklabs-io/gouroboros v0.89.0
github.com/fxamacker/cbor/v2 v2.6.0
github.com/go-playground/validator/v10 v10.22.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/blinklabs-io/gouroboros v0.88.0 h1:LCZ6V5NxO7YxEjOz5eLuKFSNkZX1y70+H7iYoXkEzgY=
github.com/blinklabs-io/gouroboros v0.88.0/go.mod h1:1lxsmbJQQMbzta5np5TG0qmb0aNYAeMDvQXcoCwE7XU=
github.com/blinklabs-io/gouroboros v0.89.0 h1:EGetVz7u7yrVN6oRP/YmwEQFRVK2I7yvF1GxRv/vlio=
github.com/blinklabs-io/gouroboros v0.89.0/go.mod h1:1lxsmbJQQMbzta5np5TG0qmb0aNYAeMDvQXcoCwE7XU=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fxamacker/cbor/v2 v2.6.0 h1:sU6J2usfADwWlYDAFhZBQ6TnLFBHxgesMrQfQgk1tWA=
Expand Down
40 changes: 16 additions & 24 deletions tuna.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ func (t *TunaV1State) MarshalCBOR() ([]byte, error) {
tmp := cbor.NewConstructor(
0,
cbor.IndefLengthList{
Items: []any{
t.BlockNumber,
t.CurrentHash,
t.LeadingZeros,
t.DifficultyNumber,
t.EpochTime,
t.RealTimeNow,
t.Extra,
cbor.IndefLengthList{
Items: tmpInterlink,
},
},
t.BlockNumber,
t.CurrentHash,
t.LeadingZeros,
t.DifficultyNumber,
t.EpochTime,
t.RealTimeNow,
t.Extra,
cbor.IndefLengthList(tmpInterlink),
},
)
return cbor.Encode(&tmp)
Expand Down Expand Up @@ -90,18 +86,14 @@ func (t *TunaV2State) MarshalCBOR() ([]byte, error) {
tmp := cbor.NewConstructor(
0,
cbor.IndefLengthList{
Items: []any{
t.BlockNumber,
t.CurrentHash,
t.LeadingZeros,
t.DifficultyNumber,
t.EpochTime,
t.RealTimeNow,
cbor.IndefLengthList{
Items: tmpInterlink,
},
t.Extra,
},
t.BlockNumber,
t.CurrentHash,
t.LeadingZeros,
t.DifficultyNumber,
t.EpochTime,
t.RealTimeNow,
cbor.IndefLengthList(tmpInterlink),
t.Extra,
},
)
return cbor.Encode(&tmp)
Expand Down

0 comments on commit 75aceba

Please sign in to comment.