Skip to content

Instantly share code, notes, and snippets.

Last active Sep 24, 2020
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