onflow / onflow/flow-cli

Fetching events with a batch set to one returns duplicate

Open
#970 0 comments 0 reactions 1 assignee View on GitHub

@chasefleming is already working on this.

Since Apr 11, 2023.

Bug
Dominant language
Go
Stars
209
Forks
87
Avg merge
1d 17h
Merged PRs (30d)
3

Description

When running the command to fetch the events with the batch flag set to one it returns duplicate results.

Command run: flow events get A.f8d6e0586b0a20c7.Bar.Test --batch 1

Result:

Events Block #9:
    Index	0
    Type	A.f8d6e0586b0a20c7.Bar.Test
    Tx ID	f649577a93e187b421636f11cf15b82556e433174b5214b1816f3f1164b01068
    Values
		- x (String): "Hello World init"

Events Block #9:
    Index	0
    Type	A.f8d6e0586b0a20c7.Bar.Test
    Tx ID	f649577a93e187b421636f11cf15b82556e433174b5214b1816f3f1164b01068
    Values
		- x (String): "Hello World init"

As seen the event is repeated. This only happens when the batch flag is set to 1.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.