From 891935956430045008ec9cb4d3073931f23a1fc8 Mon Sep 17 00:00:00 2001 From: Supun Setunga Date: Mon, 24 Apr 2023 09:25:35 -0700 Subject: [PATCH] Bump CBOR version --- encoding/ccf/encode.go | 1 + go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/encoding/ccf/encode.go b/encoding/ccf/encode.go index b97d8dc417..9f71212e3d 100644 --- a/encoding/ccf/encode.go +++ b/encoding/ccf/encode.go @@ -61,6 +61,7 @@ func Encode(value cadence.Value) ([]byte, error) { var w bytes.Buffer enc := NewEncoder(&w) + defer enc.enc.Close() err := enc.Encode(value) if err != nil { diff --git a/go.mod b/go.mod index 49fd1eb1cb..de4ec6fead 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/bits-and-blooms/bitset v1.2.2 github.com/c-bata/go-prompt v0.2.5 - github.com/fxamacker/cbor/v2 v2.4.1-0.20220515183430-ad2eae63303f + github.com/fxamacker/cbor/v2 v2.4.1-0.20230228173756-c0c9f774e40c github.com/go-test/deep v1.0.5 github.com/google/go-cmp v0.5.9 // indirect github.com/leanovate/gopter v0.2.9 diff --git a/go.sum b/go.sum index 9cc149e2ee..1036526b32 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/dave/jennifer v1.5.0 h1:HmgPN93bVDpkQyYbqhCHj5QlgvUkvEOzMyEvKLgCRrg= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fxamacker/cbor/v2 v2.4.1-0.20220515183430-ad2eae63303f h1:dxTR4AaxCwuQv9LAVTAC2r1szlS+epeuPT5ClLKT6ZY= -github.com/fxamacker/cbor/v2 v2.4.1-0.20220515183430-ad2eae63303f/go.mod h1:TA1xS00nchWmaBnEIxPSE5oHLuJBAVvqrtAnWBwBCVo= +github.com/fxamacker/cbor/v2 v2.4.1-0.20230228173756-c0c9f774e40c h1:5tm/Wbs9d9r+qZaUFXk59CWDD0+77PBqDREffYkyi5c= +github.com/fxamacker/cbor/v2 v2.4.1-0.20230228173756-c0c9f774e40c/go.mod h1:TA1xS00nchWmaBnEIxPSE5oHLuJBAVvqrtAnWBwBCVo= github.com/fxamacker/circlehash v0.3.0 h1:XKdvTtIJV9t7DDUtsf0RIpC1OcxZtPbmgIH7ekx28WA= github.com/fxamacker/circlehash v0.3.0/go.mod h1:3aq3OfVvsWtkWMb6A1owjOQFA+TLsD5FgJflnaQwtMM= github.com/go-test/deep v1.0.5 h1:AKODKU3pDH1RzZzm6YZu77YWtEAq6uh1rLIAQlay2qc=