Skip to content

Commit ddf8e87

Browse files
authored
Merge pull request #2017 from web3j/fix/contract-wrapper
fix contract generator
2 parents d86b993 + 21cfdc5 commit ddf8e87

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
77

88
### Bug Fixes
99

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

1212
### Features
1313

codegen/src/main/java/org/web3j/codegen/SolidityFunctionWrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ private Set<String> getDuplicateFunctionNames(List<AbiDefinition> functionDefini
671671
private static MethodSpec buildGetDeploymentBinaryMethod() {
672672
MethodSpec.Builder toReturn =
673673
MethodSpec.methodBuilder("getDeploymentBinary")
674-
.addModifiers(Modifier.PRIVATE, Modifier.STATIC)
674+
.addModifiers(Modifier.PUBLIC, Modifier.STATIC)
675675
.returns(ClassName.get(String.class));
676676

677677
CodeBlock codeBlock =

codegen/src/test/resources/solidity/metacoin/build/java/MetaCoin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public static void linkLibraries(List<Contract.LinkReference> references) {
166166
librariesLinkedBinary = linkBinaryWithReferences(BINARY, references);
167167
}
168168

169-
private static String getDeploymentBinary() {
169+
public static String getDeploymentBinary() {
170170
if (librariesLinkedBinary != null) {
171171
return librariesLinkedBinary;
172172
} else {

0 commit comments

Comments
 (0)