Skip to content

Commit 4a6284d

Browse files
committed
Add missing generate both for truffle and update web3j to 4.12.3
Signed-off-by: Sergio Mendoza <[email protected]>
1 parent 873576c commit 4a6284d

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mainClassName = 'org.web3j.console.Web3j'
1818
applicationName = 'web3j'
1919

2020
ext {
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'

src/main/java/org/web3j/console/wrapper/subcommand/TruffleGenerateCommand.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)