aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-03-06 21:20:42 +0800
committerGitHub <noreply@github.com>2017-03-06 21:20:42 +0800
commit573b885337aca75a025c08eea80bb109041e669e (patch)
tree830cdcd20fbd2618499e68046a73350a2dc376ae /libsolidity/analysis
parent863a353374a410a27a32b9feca3b6514b73f7809 (diff)
parentf521fd7b191ef59ddf54da099c11e70528e488fd (diff)
downloaddexon-solidity-573b885337aca75a025c08eea80bb109041e669e.tar.gz
dexon-solidity-573b885337aca75a025c08eea80bb109041e669e.tar.zst
dexon-solidity-573b885337aca75a025c08eea80bb109041e669e.zip
Merge pull request #1746 from ethereum/dontwarnAllUpper
Mention way to remove warning about invalid checksum.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index ff55ef1f..5426cd17 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -1580,7 +1580,11 @@ void TypeChecker::endVisit(Literal const& _literal)
return;
}
else
- warning(_literal.location(), "This looks like an address but has an invalid checksum.");
+ warning(
+ _literal.location(),
+ "This looks like an address but has an invalid checksum. "
+ "If this is not used as an address, please prepend '00'."
+ );
}
_literal.annotation().type = Type::forLiteral(_literal);
if (!_literal.annotation().type)