From b66221be640f82872983bb4084617e72b0a94ec0 Mon Sep 17 00:00:00 2001 From: Tom Haile Date: Wed, 21 Feb 2024 15:56:38 -0600 Subject: [PATCH] upgrade flowkit v2 --- go.mod | 2 +- go.sum | 4 ++-- internal/v1_1/generator.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 329eeb8..ee7375d 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/hexops/autogold/v2 v2.2.1 github.com/onflow/cadence v1.0.0-M7 github.com/onflow/flow-go-sdk v1.0.0-M4 - github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.2.0.20240214213743-ee40994a815f + github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.4 github.com/spf13/afero v1.10.0 github.com/stoewer/go-strcase v1.3.0 github.com/stretchr/testify v1.8.4 diff --git a/go.sum b/go.sum index 4bb0758..9a8939c 100644 --- a/go.sum +++ b/go.sum @@ -1873,8 +1873,8 @@ github.com/onflow/flow-nft/lib/go/contracts v1.1.1-0.20240205233530-86ee8c352fa6 github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20231121210617-52ee94b830c2/go.mod h1:NA2pX2nw8zuaxfKphhKsk00kWLwfd+tv8mS23YXO4Sk= github.com/onflow/flow/protobuf/go/flow v0.3.7 h1:+6sBdlE/u4ZMTVB9U1lA6Xn2Bd48lOOX96Bv9dNubsk= github.com/onflow/flow/protobuf/go/flow v0.3.7/go.mod h1:NA2pX2nw8zuaxfKphhKsk00kWLwfd+tv8mS23YXO4Sk= -github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.2.0.20240214213743-ee40994a815f h1:GjStQGlfhxbZiOZy8vFRSNUrNoD1u3Q8f5mhfyZ1vhc= -github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.2.0.20240214213743-ee40994a815f/go.mod h1:Ck+iZGJYerviTQ3SyqoUNLNXdRUJiI5iMxfM9YugtK0= +github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.4 h1:PgKrXUcObYu6yPLHx9Wl4ikvZMEl6NXaRWllZatyZyk= +github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.4/go.mod h1:s0MTlpOWscHiKVsynlw83cREjlmVFoBszQNgcP2RzPQ= github.com/onflow/sdks v0.5.1-0.20230912225508-b35402f12bba h1:rIehuhO6bj4FkwE4VzwEjX7MoAlOhUJENBJLqDqVxAo= github.com/onflow/sdks v0.5.1-0.20230912225508-b35402f12bba/go.mod h1:F0dj0EyHC55kknLkeD10js4mo14yTdMotnWMslPirrU= github.com/onflow/wal v0.0.0-20240208022732-d756cd497d3b h1:6O/BEmA99PDT5QVjoJgrYlGsWnpxGJTAMmsC+V9gyds= diff --git a/internal/v1_1/generator.go b/internal/v1_1/generator.go index 6d6c2de..ded5a33 100644 --- a/internal/v1_1/generator.go +++ b/internal/v1_1/generator.go @@ -212,7 +212,7 @@ func (g *Generator) generateDependenceInfo(ctx context.Context, contractName str } flowkit := getNetworkClient(n.Network, g.clients) if n.DependencyPinBlockHeight == 0 && flowkit != nil { - block, _ := flowkit.Gateway().GetLatestBlock() + block, _ := flowkit.Gateway().GetLatestBlock(ctx) height := block.Height details, err := g.GenerateDepPinDepthFirst(ctx, flowkit, n.Address, contractName, height)