-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Enrich generateBothCallAndSend feature in TruffleJsonFunctionWrapperGenerator #1986
Enrich generateBothCallAndSend feature in TruffleJsonFunctionWrapperGenerator #1986
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1986 +/- ##
============================================
- Coverage 69.23% 69.22% -0.02%
+ Complexity 3125 3120 -5
============================================
Files 493 493
Lines 13156 13151 -5
Branches 1696 1694 -2
============================================
- Hits 9109 9104 -5
- Misses 3557 3566 +9
+ Partials 490 481 -9 ☔ View full report in Codecov by Sentry. |
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.
LGTM
@tonykwok1992 Please rebase to master and do spotlessApply |
d73db24
to
3fddbda
Compare
rebased |
3fddbda
to
594bd93
Compare
rebased again |
@@ -40,6 +42,8 @@ | |||
|
|||
import static org.web3j.codegen.Console.exitError; | |||
import static org.web3j.utils.Collection.tail; | |||
import static picocli.CommandLine.*; |
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.
Plz remove this wildcard import
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.
done
private String destinationDirLocation; | ||
|
||
@Option( | ||
names = {"-B", "--generateBoth"}, |
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.
rename this to generateCallAndSend with "-cs"
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 think it will be better to be consistent with SolidityFunctionWrapperGenerator
which use "-B", "--generateBoth"
?
594bd93
to
0dcfeee
Compare
rebased |
What does this PR do?
Where should the reviewer start?
All files
Why is it needed?
To be able to use
web3j generate truffle
with flag--generateBoth
/-B
to generator both send and call in wrapper generation using truffle option