22393/solidity-how-can-i-return-a-list-of-user-defined-function
I want to return a list of user-defined struct
function sortByEtherValues (string category) public view returns (JobStruct[]) { ... }
I am getting the following error:
Failed to decode output: Error: Unsupported or invalid type: tuple
You can do it with something like this:
struct JobStruct { uint a; uint b; uint c; } function sortByEtherValues (string category) public view returns (uint, uint, uint) { JobStruct memory js = JobStruct(1, 2, 3); return (js.a, js.b, js.c); }
Is your transaction actually called 'OrderPlaced' (in ...READ MORE
Yes, you're right. Saving entire image in ...READ MORE
There are two ways to actually do ...READ MORE
This is what I used: package main import ( ...READ MORE
This was a bug. They've fixed it. ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
recipes is a dynamic storage array. You need ...READ MORE
The easiest way to compile Solidity is ...READ MORE
You can do this using a response ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.