mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1746 from ethereum/dontwarnAllUpper
Mention way to remove warning about invalid checksum.
This commit is contained in:
commit
573b885337
@ -1580,7 +1580,11 @@ void TypeChecker::endVisit(Literal const& _literal)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
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);
|
_literal.annotation().type = Type::forLiteral(_literal);
|
||||||
if (!_literal.annotation().type)
|
if (!_literal.annotation().type)
|
||||||
|
Loading…
Reference in New Issue
Block a user