Skip to content

Commit

Permalink
Merge pull request #118 from SergioIOB/feature/missUpBothAndUpdateVer…
Browse files Browse the repository at this point in the history
…sion

Add missing generate both for truffle and update web3j to 4.12.3
  • Loading branch information
gtebrean authored Dec 27, 2024
2 parents 873576c + 4a6284d commit 7c44544
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mainClassName = 'org.web3j.console.Web3j'
applicationName = 'web3j'

ext {
web3jVersion = '4.12.2'
web3jVersion = '4.12.3'
picocli = '4.7.6'
slf4jVersion = '2.0.13'
junitVersion = '5.9.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,23 @@ public class TruffleGenerateCommand implements Runnable {
description = "Use Solidity types.")
private boolean solidityTypes;

@Option(
names = {"-B", "--generateBoth"},
description = "Generate both send_ and call_ functions.")
private boolean generateBoth = false;

@Override
public void run() {

boolean useJavaNativeTypes = useJavaNativeTypes();

try {
new TruffleJsonFunctionWrapperGenerator(
jsonFileLocation.getAbsolutePath(),
destinationDirLocation.getAbsolutePath(),
basePackageName,
useJavaNativeTypes,
true)
jsonFileLocation.getAbsolutePath(),
destinationDirLocation.getAbsolutePath(),
basePackageName,
useJavaNativeTypes,
generateBoth)
.generate();
} catch (Exception e) {
Console.exitError(e);
Expand Down

0 comments on commit 7c44544

Please sign in to comment.