hyperledger-web3j/web3j

what is the output parameter (Type referrence) for method returning empty list e.g "outputs": []

Opened this issue · 1 comments

Below is method to create profile on my abi.

{
"inputs": [
{
"internalType": "string",
"name": "_username",
"type": "string"
},
{
"internalType": "string",
"name": "_profileDataURI",
"type": "string"
},
{
"internalType": "address",
"name": "_referrer",
"type": "address"
}
],
"name": "createProfile",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}

what output parameters to specify here

val function = Function(
Web3EventNames.createProfile,
listOf(Utf8String(userId), Utf8String("{emailId: ${emailId}}"), Address(referrer)),
listOf() // This not working
)

I tried putting empty list as expected output parameters but seems it's not accepting and the execution is failing.

you can use - Collections.emptyList()