π Solved the Hello Ethernaut challenge from
@openzeppelin π‘οΈ
A nice reminder about string comparison in Solidity:
if (
keccak256(abi.encodePacked(param)) ==
keccak256(abi.encodePacked("hello"))
)
Solidity canβt compare string values directly because they are dynamic types stored in memory.
The common pattern is to compare hashes using keccak256.