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
Default value for blockTag argument in provider methods #87
Conversation
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.
I like this addition. How default parameters behave in java code and documentation?
@@ -43,14 +43,25 @@ interface Provider { | |||
*/ | |||
fun callContract(call: Call, blockNumber: Int): Request<List<Felt>> | |||
|
|||
/** | |||
* Calls a contract deployed on StarkNet. |
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.
Perhaps these overloaded method should have a info in their docs that they use default block tag LATEST
.
Codecov ReportBase: 62.50% // Head: 62.40% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #87 +/- ##
==========================================
- Coverage 62.50% 62.40% -0.10%
==========================================
Files 45 46 +1
Lines 1176 1181 +5
Branches 68 68
==========================================
+ Hits 735 737 +2
- Misses 422 425 +3
Partials 19 19
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Added default values to blockTag params in provider methods, so these methods can be called without specifying blockId.
Swapped order of arguments in getClassAt method, to align it with other Provider methods (potential breaking change)