Fixes #5051 (introduced in #4684), effectively allowing underscores in address literals.

This commit is contained in:
Christian Parpart
2018-10-02 15:37:15 +02:00
committed by Christian Parpart
parent 7609710d4f
commit 9fb835b710
5 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -499,7 +499,7 @@ u256 AddressType::literalValue(Literal const* _literal) const
{
solAssert(_literal, "");
solAssert(_literal->value().substr(0, 2) == "0x", "");
return u256(_literal->value());
return u256(_literal->valueWithoutUnderscores());
}
TypePointer AddressType::unaryOperatorResult(Token::Value _operator) const