java-sdk 调用FunctionEncoder.encode(function)当函数参数涉及DynamicArray参数计算错误
比如如下调用返回的数据encodedFunction 有误
Array tokenIds =new DynamicArray(new Uint256(5));
Array tokenUrls =new DynamicArray(new Utf8String(“uri.5”));
List<Type> inputParameters = new ArrayList<>();
inputParameters.add(new Address(managerAddress));
inputParameters.add(tokenIds);
inputParameters.add(tokenUrls);
Function function = new Function("*****",
inputParameters,
Collections.<TypeReference<?>>emptyList());
String encodedFunction = FunctionEncoder.encode(function);