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

types: add checkForLatestBlock to BlockTracker interface #184

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

legobeat
Copy link
Contributor

The checkForLatestBlock function is already implemented by both block tracker implementations and expected by users (https://github.com/MetaMask/core/blob/fc13dd4cebdd4dc56f4c8c2528a96249e871aaf2/packages/network-controller/src/create-auto-managed-network-client.test.ts#L169).

The function triggers an update for latest block and returns the result in the same format as getLatestBlock.

@legobeat legobeat marked this pull request as ready for review September 21, 2023 12:29
@legobeat legobeat requested a review from a team as a code owner September 21, 2023 12:29
@legobeat legobeat merged commit 310dbd6 into MetaMask:main Oct 4, 2023
4 checks passed
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