Skip to content

Commit 9301515

Browse files
authored
Fixed DefaultFunctionEncoder calculating offset for nested StaticArray (#2054)
Signed-off-by: penuel.li <[email protected]>
1 parent 760e50b commit 9301515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

abi/src/main/java/org/web3j/abi/DefaultFunctionEncoder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private static int getLength(final List<Type> parameters) {
9999
((StaticArray) type).getComponentType())) {
100100
count++;
101101
} else if (type instanceof StaticArray) {
102-
count += ((StaticArray) type).getValue().size();
102+
count += getLength(((StaticArray) type).getValue());
103103
} else {
104104
count++;
105105
}

0 commit comments

Comments
 (0)