-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
feat(web3.js): add support for get stake minimum delegation #26682
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26682 +/- ##
===========================================
- Coverage 81.9% 77.4% -4.5%
===========================================
Files 631 42 -589
Lines 174252 2459 -171793
Branches 0 353 +353
===========================================
- Hits 142728 1905 -140823
+ Misses 31524 422 -31102
- Partials 0 132 +132 |
ef8d7bf
to
8602516
Compare
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.
Thanks for this!
8602516
to
dcd6ab5
Compare
Pull request has been modified.
web3.js/src/connection.ts
Outdated
* get the stake minimum delegation | ||
*/ | ||
async getStakeMinimumDelegation( | ||
commitment?: Commitment, |
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.
Close! I really did mean to take a config object here, even if for now it only contains a single property. This makes the method call future proof; if we need to add another property then we have a place to do it. There are other examples in this file of calls that take a config. Check it out!
Optional config, optional commitment
property inside.
dcd6ab5
to
a2662bf
Compare
Pull request has been modified.
a2662bf
to
9ae40f6
Compare
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.
The PR adds --
1). support for
getStakeMinimumDelegation
to web3.js with a test.fixes #26564