Skip to content

Commit

Permalink
Merge pull request #2017 from web3j/fix/contract-wrapper
Browse files Browse the repository at this point in the history
fix contract generator
  • Loading branch information
gtebrean authored Mar 20, 2024
2 parents d86b993 + 21cfdc5 commit ddf8e87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

### Bug Fixes

*
* Fix contract wrapper generation [#2017](https://github.com/web3j/web3j/pull/2017)

### Features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ private Set<String> getDuplicateFunctionNames(List<AbiDefinition> functionDefini
private static MethodSpec buildGetDeploymentBinaryMethod() {
MethodSpec.Builder toReturn =
MethodSpec.methodBuilder("getDeploymentBinary")
.addModifiers(Modifier.PRIVATE, Modifier.STATIC)
.addModifiers(Modifier.PUBLIC, Modifier.STATIC)
.returns(ClassName.get(String.class));

CodeBlock codeBlock =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public static void linkLibraries(List<Contract.LinkReference> references) {
librariesLinkedBinary = linkBinaryWithReferences(BINARY, references);
}

private static String getDeploymentBinary() {
public static String getDeploymentBinary() {
if (librariesLinkedBinary != null) {
return librariesLinkedBinary;
} else {
Expand Down

0 comments on commit ddf8e87

Please sign in to comment.