Rosario Borgesi pfp
Rosario Borgesi

@rosarioborgesi

šŸ“Œ Comparing bytes32 and uint256 In Solidity, bytes32 and uint256 are both 32 bytes, so you can safely cast one into the other before comparing. You can either: • cast bytes32 → uint256 • cast uint256 → bytes32 Both work because bytes32 = 256 bits uint256 = 256 bits They occupy the same EVM size.
0 reply
0 recast
0 reaction