Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/HarleyAppleChoi/flow-go-sdk:
  Update test/entities.go
  Update test/entities.go

# Conflicts:
#	test/entities.go
  • Loading branch information
HarleyAppleChoi committed Feb 18, 2022
2 parents 14942b8 + 58dae52 commit 5be7dfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/get_blocks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package main
import (
"context"
"fmt"

"github.com/onflow/flow-go-sdk"
"github.com/onflow/flow-go-sdk/client"
"github.com/onflow/flow-go-sdk/examples"
Expand Down Expand Up @@ -57,7 +58,7 @@ func printBlock(block *flow.Block, err error) {
fmt.Printf("\nID: %s\n", block.ID)
fmt.Printf("height: %d\n", block.Height)
fmt.Printf("timestamp: %s\n\n", block.Timestamp)
fmt.Printf("Signatures: %s\n",block.Signatures)
fmt.Printf("Signatures: %s\n", block.Signatures)
}

func prepareDemo() {
Expand Down
8 changes: 4 additions & 4 deletions test/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func BlockGenerator() *Blocks {

func (g *Blocks) New() *flow.Block {
header := g.headers.New()
signiture := g.signatures.New()
signatures := g.signatures.New()

guarantees := []*flow.CollectionGuarantee{
g.guarantees.New(),
Expand All @@ -150,7 +150,7 @@ func (g *Blocks) New() *flow.Block {
return &flow.Block{
BlockHeader: header,
BlockPayload: payload,
Signatures: signiture,
Signatures: signatures,
}
}

Expand Down Expand Up @@ -294,7 +294,7 @@ func (g *Events) New() flow.Event {
return event
}

type Signatures struct{
type Signatures struct {
count int
}

Expand All @@ -311,7 +311,7 @@ func (g *Signatures) New() [][]byte {

func newSignatures(count int) Signatures {
return Signatures{
count:count,
count: count,
}
}

Expand Down

0 comments on commit 5be7dfb

Please sign in to comment.