web3j icon indicating copy to clipboard operation
web3j copied to clipboard

Question: How to call contract with nested (two dimensional) array in argument

Open lukoyanov opened this issue 4 years ago • 2 comments

Nested (two dimensional) array in argument

I've got a contract function that has a two-dimensional array as an argument. E.g

function foo(address[] memory a1, address[][] memory path)

How can I create a function description for web3j to call it?

lukoyanov avatar Jul 02 '21 12:07 lukoyanov

Hi @conor10 does we3j currently support the two dimensional array now ?

Pana avatar Nov 12 '21 00:11 Pana

@Pana At the end of the day, I ended up using headlong project for encoding such contract calls. Maybe it would be helpful.

lukoyanov avatar Nov 14 '21 07:11 lukoyanov