Rosario Borgesi pfp
Rosario Borgesi

@rosarioborgesi

πŸ“Œ 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.
1 reply
1 recast
3 reactions