diff --git a/go.mod b/go.mod index 21164ab..5bac43c 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/go.sum b/go.sum index 057007b..e4d47d8 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/tuna.go b/tuna.go index 4e50656..57f3ae2 100644 --- a/tuna.go +++ b/tuna.go @@ -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) @@ -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)