Skip to content

Commit

Permalink
upgrade flowkit v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bthaile committed Feb 21, 2024
1 parent 7d4fc6a commit b66221b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion internal/v1_1/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b66221b

Please sign in to comment.