You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
khanco
changed the title
what is the output parameter for method returning blank array e.g "outputs": []
what is the output parameter (Type referrence) for method returning empty list e.g "outputs": []
Apr 28, 2024
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.
The text was updated successfully, but these errors were encountered: