-
Notifications
You must be signed in to change notification settings - Fork 34
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
✨ Added getBlockNumber()
method to BaseProvider
#125
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #125 +/- ##
==========================================
+ Coverage 85.60% 85.65% +0.04%
==========================================
Files 37 37
Lines 889 892 +3
Branches 258 258
==========================================
+ Hits 761 764 +3
Misses 113 113
Partials 15 15
Continue to review full report at Codecov.
|
* * Identical to [`ethers.provider.getBlockNumber`](https://docs.ethers.io/v5/api/providers/provider/#Provider-getBlockNumber) | ||
* * Identical to [`web3.eth.getBlockNumber`](https://web3js.readthedocs.io/en/v1.7.3/web3-eth.html#getblocknumber) | ||
* | ||
* @returns the number of the most recently mined block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra credit would be if we also added @example
here. I took care of it 👌
Closes #93
getBlockNumber()
methodethers
web3.js