Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update event validation logic to account for the evm.* events #5203

Conversation

m-Peter
Copy link
Collaborator

@m-Peter m-Peter commented Jan 5, 2024

It turns out that flow service/protocol events, are allowed to have only 2 parts, e.g. flow.AccountCreated.

The two newly-introduced EVM related events:

  • flow.evm.BlockExecuted
  • flow.evm.TransactionExecuted

do not comply with this format, hence, they are considered as invalid event types:

rpc error: code = InvalidArgument desc = invalid event filter: invalid event type flow.evm.BlockExecuted: invalid event type: flow.evm.BlockExecuted

@sideninja
Copy link
Contributor

This is good, but I also am working on this #5091 so I feel we can go either way. Longer solution is probably better to have an EVM specific type.

@m-Peter m-Peter force-pushed the update-flow-event-validation-logic branch from 903dce8 to 2f95f85 Compare January 12, 2024 11:00
@m-Peter m-Peter changed the title Update the validation logic for valid flow events to account for the flow.evm.* events Update event validation logic to account for the evm.* events Jan 12, 2024
@m-Peter m-Peter changed the base branch from master to gregor/evm/event-encoding January 12, 2024 11:01
@sideninja sideninja deleted the branch onflow:gregor/evm/event-encoding January 22, 2024 09:49
@sideninja sideninja closed this Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants