This repository was archived by the owner on Jan 22, 2025. It is now read-only.
feat(web3.js): add support for get stake minimum delegation#26682
Merged
steveluscher merged 1 commit intosolana-labs:masterfrom Jul 22, 2022
Merged
feat(web3.js): add support for get stake minimum delegation#26682steveluscher merged 1 commit intosolana-labs:masterfrom
steveluscher merged 1 commit intosolana-labs:masterfrom
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
steveluscher
previously requested changes
Jul 20, 2022
8602516 to
dcd6ab5
Compare
Pull request has been modified.
steveluscher
previously requested changes
Jul 21, 2022
| * get the stake minimum delegation | ||
| */ | ||
| async getStakeMinimumDelegation( | ||
| commitment?: Commitment, |
Contributor
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The PR adds --
1). support for
getStakeMinimumDelegationto web3.js with a test.fixes #26564