Skip to content

Instantly share code, notes, and snippets.

@rosdec
Last active Sep 24, 2020
Embed
What would you like to do?
pragma solidity ^0.7.1;
contract ambiguity {
function test_ambiguity() public pure returns (bool) {
return (keccak256(abi.encodePacked("aa", "b")) == keccak256(abi.encodePacked("a", "ab")));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment