Disallow comparison operators on contracts

This commit is contained in:
Marenz
2022-08-18 17:56:22 +02:00
parent 777385f5d2
commit f426b5988e
12 changed files with 45 additions and 18 deletions
@@ -6,7 +6,7 @@ contract A {
function different_salt() public returns (bool) {
B x = new B{salt: "abc"}();
B y = new B{salt: "abcef"}();
return x != y;
return address(x) != address(y);
}
function same_salt() public returns (bool) {
B x = new B{salt: "xyz"}();