I have one solidity file, inside that file I have a this function:
struct OriginInfo{
string 1;
uint32 2; //In timestamp
uint8 3;
address 4;
bool 5;
}
function insertOrigin(string _1, uint32 _2, uint8 _3, address _4) external pure {
OriginInfo(_1, _2, _3, _4, true);
}
And in a another file I import the previous sol file and I call the function insertOrigin(). The import is great done but the problem is that i dont now how to return a struct in the function and in the other contract get that struct to append to origin param inside the Travel struct.
Any help?? Its that posbile to do??