From 715d58d86044e9a665b2ceb03f67a847a1132c4f Mon Sep 17 00:00:00 2001 From: seita-uc Date: Thu, 7 Apr 2022 00:38:11 +0900 Subject: [PATCH] fix: get latest block --- flow_helpers/flow_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow_helpers/flow_helpers.go b/flow_helpers/flow_helpers.go index c96b36f4..f460b6c8 100644 --- a/flow_helpers/flow_helpers.go +++ b/flow_helpers/flow_helpers.go @@ -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 }