874341642

Results 13 comments of 874341642

```json { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "getPlayerWork", "outputs": [{ "components": [{ "internalType": "address", "name": "workType", "type": "address" }, { "internalType": "address", "name": "owner", "type":...

> If I understand right, you will write your own Foo, call it something I don't know, that has the same ABI definition as the one above and test against...

> How did you generate this? ```java public static void generateClass(String abiFile,String generateFile){ String[] args = Arrays.asList( "-a",abiFile, "-p","cn.contract", "-o",generateFile ).toArray(new String[0]); Stream.of(args).forEach(System.out::println); SolidityFunctionWrapperGenerator.main(args); } ```

> How did you generate this? org.web3j codegen 4.9.2

![image](https://user-images.githubusercontent.com/26560864/173232480-5f83398d-8f4d-4359-9ec6-49bf68f8bbca.png)

![image](https://user-images.githubusercontent.com/26560864/173232561-aa816a49-14c0-46d3-a1a5-9a11abb3d56d.png)

> Also, you can use [permalink](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-a-permanent-link-to-a-code-snippet) to share lines of code. And, [code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) for code blocks for a more readable discussion. As long as the tuple contains an array...

```json [{ "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "getPlayerWork", "outputs": [{ "components": [{ "internalType": "address", "name": "workType", "type": "address" }, { "internalType": "address", "name": "careerAddr", "type":...

```java package cn.contract; import java.math.BigInteger; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import org.web3j.abi.TypeReference; import org.web3j.abi.datatypes.Address; import org.web3j.abi.datatypes.DynamicArray; import org.web3j.abi.datatypes.DynamicStruct; import org.web3j.abi.datatypes.Function; import org.web3j.abi.datatypes.Type; import org.web3j.abi.datatypes.generated.Uint256; import org.web3j.crypto.Credentials; import org.web3j.protocol.Web3j; import...

> I agree, but we need to find a way to reproduce this to add tests for it and know what we need to implement. Also, write a more refined...