How i can check if particular item exists in the Mapping list?
struct user {
address userAddress;
uint[] entries;
}
mapping (address => user) public userInfo;
I found such solution here but this solution is not working:
require(userInfo[msg.sender].length == 0);