Skip to content

Commit 916cf63

Browse files
authored
Merge pull request #219 from onflow/gregor/update-dependencies
Update dependencies
2 parents 921f824 + 15933e6 commit 916cf63

4 files changed

Lines changed: 201 additions & 33 deletions

File tree

client/client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import (
3232
"time"
3333

3434
"github.com/onflow/cadence"
35-
"github.com/onflow/flow-go/crypto/hash"
3635
"github.com/onflow/flow/protobuf/go/flow/access"
3736
"google.golang.org/grpc"
3837

@@ -568,7 +567,7 @@ func (c *Client) GetExecutionResultForBlockID(ctx context.Context, blockID flow.
568567
chunks[i] = &flow.Chunk{
569568
CollectionIndex: uint(chunk.CollectionIndex),
570569
StartState: flow.BytesToStateCommitment(chunk.StartState),
571-
EventCollection: hash.BytesToHash(chunk.EventCollection),
570+
EventCollection: flow.BytesToHash(chunk.EventCollection),
572571
BlockID: flow.BytesToID(chunk.BlockId),
573572
TotalComputationUsed: chunk.TotalComputationUsed,
574573
NumberOfTransactions: uint16(chunk.NumberOfTransactions),

flow.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ func HashToID(hash []byte) Identifier {
6666
return BytesToID(hash)
6767
}
6868

69+
// BytesToHash constructs a crypto hash from byte slice.
70+
func BytesToHash(hash []byte) crypto.Hash {
71+
h := make(crypto.Hash, len(hash))
72+
copy(h, hash)
73+
return h
74+
}
75+
6976
type StateCommitment Identifier
7077

7178
// BytesToStateCommitment constructs a state commitment from a byte slice.

go.mod

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ module github.com/onflow/flow-go-sdk
33
go 1.13
44

55
require (
6-
cloud.google.com/go v0.65.0
6+
cloud.google.com/go v0.97.0 // indirect
7+
cloud.google.com/go/kms v1.0.0
78
github.com/ethereum/go-ethereum v1.9.9
8-
github.com/onflow/cadence v0.18.0
9-
github.com/onflow/flow-go/crypto v0.12.0
9+
github.com/onflow/cadence v0.19.1
10+
github.com/onflow/flow-go/crypto v0.21.3
1011
github.com/onflow/flow/protobuf/go/flow v0.2.2
11-
github.com/pkg/errors v0.8.1
12+
github.com/pkg/errors v0.9.1
1213
github.com/stretchr/testify v1.7.0
13-
google.golang.org/api v0.31.0
14-
google.golang.org/genproto v0.0.0-20200831141814-d751682dd103
15-
google.golang.org/grpc v1.39.0
14+
google.golang.org/api v0.58.0
15+
google.golang.org/genproto v0.0.0-20211007155348-82e027067bd4
16+
google.golang.org/grpc v1.40.0
1617
google.golang.org/protobuf v1.27.1
1718
)

0 commit comments

Comments
 (0)