File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
src/main/java/org/web3j/console/wrapper/subcommand Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ mainClassName = 'org.web3j.console.Web3j'
1818applicationName = ' web3j'
1919
2020ext {
21- web3jVersion = ' 4.12.2 '
21+ web3jVersion = ' 4.12.3 '
2222 picocli = ' 4.7.6'
2323 slf4jVersion = ' 2.0.13'
2424 junitVersion = ' 5.9.3'
Original file line number Diff line number Diff line change @@ -69,18 +69,23 @@ public class TruffleGenerateCommand implements Runnable {
6969 description = "Use Solidity types." )
7070 private boolean solidityTypes ;
7171
72+ @ Option (
73+ names = {"-B" , "--generateBoth" },
74+ description = "Generate both send_ and call_ functions." )
75+ private boolean generateBoth = false ;
76+
7277 @ Override
7378 public void run () {
7479
7580 boolean useJavaNativeTypes = useJavaNativeTypes ();
7681
7782 try {
7883 new TruffleJsonFunctionWrapperGenerator (
79- jsonFileLocation .getAbsolutePath (),
80- destinationDirLocation .getAbsolutePath (),
81- basePackageName ,
82- useJavaNativeTypes ,
83- true )
84+ jsonFileLocation .getAbsolutePath (),
85+ destinationDirLocation .getAbsolutePath (),
86+ basePackageName ,
87+ useJavaNativeTypes ,
88+ generateBoth )
8489 .generate ();
8590 } catch (Exception e ) {
8691 Console .exitError (e );
You can’t perform that action at this time.
0 commit comments