Skip to content

Instantly share code, notes, and snippets.

@rosdec
Last active September 24, 2020 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosdec/45bb4578233df333fee789d357e90678 to your computer and use it in GitHub Desktop.
Save rosdec/45bb4578233df333fee789d357e90678 to your computer and use it in GitHub Desktop.
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