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

test(evmengine/keeper): add test cases for evmmsgs #95

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

zsystm
Copy link
Collaborator

@zsystm zsystm commented Sep 9, 2024

increased coverage of evmmsgs to 91.7% and do some refactoring of evmmsgs.go

This PR includes #106 and will be updated based on discussion result for #106

issue: #81

@zsystm zsystm self-assigned this Sep 9, 2024
@zsystm zsystm marked this pull request as ready for review September 9, 2024 08:43
principle followed in this commit
- single responsibility principle
- separation of concerns

before: the evmEvents function's responsibilities
- fetching logs from ethereum client
- converting those logs to EVMEvent objects
- verifying the converted events
- sorting the events

after this commit
- fetching logs from ethereum client
(others are delegated to other functions)
it is directly related to EVMEvent so it should be defined in tx.go
@zsystm zsystm force-pushed the zsystm/test/evmengine/keeper/evmmsgs branch from 68a4a5f to 281ac4b Compare September 10, 2024 01:35
@zsystm zsystm marked this pull request as draft September 11, 2024 07:18
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.

1 participant