diff options
author | chriseth <chris@ethereum.org> | 2017-03-06 21:20:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 21:20:42 +0800 |
commit | 573b885337aca75a025c08eea80bb109041e669e (patch) | |
tree | 830cdcd20fbd2618499e68046a73350a2dc376ae | |
parent | 863a353374a410a27a32b9feca3b6514b73f7809 (diff) | |
parent | f521fd7b191ef59ddf54da099c11e70528e488fd (diff) | |
download | dexon-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.
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 6 |
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) |