【发布时间】:2023-03-09 14:29:01
【问题描述】:
我认为比较字符串会像这样做一样简单:
function withStrs(string memory a, string memory b) internal {
if (a == b) {
// do something
}
}
但是这样做会给我一个错误Operator == not compatible with types string memory and string memory。
什么是正确的方法?
【问题讨论】: