Skip to content

Commit 143f0e9

Browse files
penuel-leoshashankiitbhu
authored andcommitted
Fixed DefaultFunctionEncoder calculating offset for nested StaticArray (LFDT-web3j#2054)
Signed-off-by: penuel.li <[email protected]> Signed-off-by: Shashank Kumar <[email protected]>
1 parent abdf2e3 commit 143f0e9

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)