This contract correctly connect an username to their public address. But when I used the function to display the name by their address, the user name isn't shown but instead of that their is an address but not the actual name. (see picture below). How can I make it happen to show the users name instead of a address?
contract Users {
mapping (address => bytes32) public names;
mapping (bytes32 => address) public owners;
function register(bytes32 name) {
owners[name] = msg.sender;
names[msg.sender] = name;
}
}
