Skip to content

Commit 1d11a20

Browse files
fixup! Contract type comparison deprecation warning
1 parent bc3c3cf commit 1d11a20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libsolidity/analysis/TypeChecker.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,8 @@ void TypeChecker::endVisit(BinaryOperation const& _operation)
18371837
9170_error,
18381838
_operation.location(),
18391839
"Comparison of variables of contract type is deprecated and scheduled for removal "
1840-
"in the next breaking version (0.9). Instead, use an explicit cast to address type."
1840+
"in the next breaking version (0.9). "
1841+
"Use an explicit cast to address type and compare the addresses instead."
18411842
);
18421843
}
18431844

0 commit comments

Comments
 (0)