I have this mapping in a smart contract:
mapping (uint256 => mapping (address => UserInfo)) public userInfo;
I want to call this in a interface like function view returns:
Can someone tell me if like this:
function poolInfo(uint256 _pid, address _dres) external view returns (IMasterChef.UserInfo memory);
Am i wrong?