Skip to content

Commit

Permalink
fix(abigen): explicitly define arrayOf type to avoid kotlin compiler …
Browse files Browse the repository at this point in the history
…warnings
  • Loading branch information
ArtificialPB committed Feb 2, 2025
1 parent 88eda80 commit 0510f8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class AbiContractBuilder(
val encodeArgs = if (inputs.isEmpty()) {
CodeBlock.of("emptyArray()")
} else {
val argsBuilder = StringBuilder().append("arrayOf(")
val argsBuilder = StringBuilder().append("arrayOf<Any>(")
repeat(builder.parameters.size) { argsBuilder.append("%N,") }
argsBuilder.deleteCharAt(argsBuilder.length - 1).append(")")

Expand Down

0 comments on commit 0510f8e

Please sign in to comment.