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

chore: get_logs with block depth #274

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

zsluedem
Copy link
Collaborator

@zsluedem zsluedem commented Jan 3, 2024

No description provided.

@zsluedem zsluedem requested a review from Vid201 as a code owner January 3, 2024 07:37
let filter = self
.entry_point
.entry_point_api()
.event::<UserOperationEventFilter>()
.from_block(latest_block - FILTER_MAX_DEPTH)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some very short block chains, it is not possible to catch the receipt with shallow-depth search. Increase the depth here to make get the receipt possible. But it is still not an ideal solution

@zsluedem zsluedem merged commit 5388617 into silius-rs:main Jan 3, 2024
2 checks passed
@zsluedem zsluedem deleted the user-op-receipt branch January 3, 2024 14:37
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