Can anyone tell why my get() function only returns the string "name" in Remix? I'd like it to return all the values within the users mapping like i've defined, can you help me accomplish this?
pragma solidity ^0.5.0;
contract Profile {
struct User {
string name;
string subtitle;
string sdescription;
string ldescription;
string weburl;
string memehash;
}
mapping(address => User) public users;
function set(string memory _name, string memory _subtitle, string memory _sdescription,string memory _ldescription, string memory _weburl, string memory _memehash) public {
users[msg.sender] = User(_name, _subtitle, _sdescription, _ldescription, _weburl, _memehash);
}
function get() public view returns (string memory) {
return users[msg.sender].name;
return users[msg.sender].subtitle;
return users[msg.sender].sdescription;
return users[msg.sender].ldescription;
return users[msg.sender].weburl;
return users[msg.sender].memehash;
}
}
"test" is the name i set in Remix with the set() function. ^