Content
@
https://warpcast.com/~/channel/solidity
0 reply
0 recast
0 reaction
Rosario Borgesi
@rosarioborgesi
β In Solidity, you cannot use == to compare two strings. Strings are complex types (dynamic byte arrays), so == wonβt work like it does with primitives. β The correct way is to compare their hashes π
1 reply
1 recast
5 reactions
Rosario Borgesi
@rosarioborgesi
Check out the documentation to learn mrore: https://docs.soliditylang.org/en/v0.8.30/types.html#bytes-and-string-as-arrays
0 reply
0 recast
0 reaction