I have two contract and in first contract it contains a function which is responsible for returning two values, one of string and one of integer.
function getUserData(address userAddress)
public constant returns(string, uint)
{
string Firstname = "Hello";
uint number=123;
return( Firstname,number);
}
On compiling this gives error "Type literal_string "Hello" is not implicitly convertible to expected type string storage pointer. string Firstname = "Hello"; " In the second contract I make object of first contract and tried to get function
function FetchDetail(address userAddress) public constant returns(string,uint )
{
string memory data1;
uint data2;
UserRegistration ud=new UserRegistration();
(data1,data2)= ud.getUserData(userAddress);
return(data1,data2);
}
But I am unable to get values. Please suggest me.
string memory Firstname = "Hello";
.