Skip to content

Commit

Permalink
fix: get latest block
Browse files Browse the repository at this point in the history
  • Loading branch information
seitau committed Apr 6, 2022
1 parent 746ebb3 commit 715d58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow_helpers/flow_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const hexPrefix = "0x"

// LatestBlockId retuns the flow.Identifier for the latest block in the chain.
func LatestBlockId(ctx context.Context, flowClient FlowClient) (*flow.Identifier, error) {
block, err := flowClient.GetLatestBlockHeader(ctx, true)
block, err := flowClient.GetLatestBlockHeader(ctx, false)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 715d58d

Please sign in to comment.