I would assume comparing strings would be as easy as doing:
function withStrs(string memory a, string memory b) internal {
if (a == b) {
// do something
}
}
But doing so gives me an error Operator == not compatible with types string memory and string memory
.
What's the right way?
abi.encodePacked
. We have to check. – Hydropic