mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7923 from ethereum/assertAddressName
Fix wrong construction of ElementaryTypeNameToken
This commit is contained in:
commit
0176c97626
@ -72,6 +72,9 @@ void ElementaryTypeNameToken::assertDetails(Token _baseType, unsigned const& _fi
|
||||
"No elementary type " + string(TokenTraits::toString(_baseType)) + to_string(_first) + "x" + to_string(_second) + "."
|
||||
);
|
||||
}
|
||||
else
|
||||
solAssert(_first == 0 && _second == 0, "Unexpected size arguments");
|
||||
|
||||
m_token = _baseType;
|
||||
m_firstNumber = _first;
|
||||
m_secondNumber = _second;
|
||||
|
@ -1678,7 +1678,7 @@ ASTPointer<Expression> Parser::parseLeftHandSideExpression(
|
||||
expectToken(Token::Payable);
|
||||
nodeFactory.markEndPosition();
|
||||
auto expressionType = nodeFactory.createNode<ElementaryTypeName>(
|
||||
ElementaryTypeNameToken(Token::Address, 160, 0),
|
||||
ElementaryTypeNameToken(Token::Address, 0, 0),
|
||||
std::make_optional(StateMutability::Payable)
|
||||
);
|
||||
expression = nodeFactory.createNode<ElementaryTypeNameExpression>(expressionType);
|
||||
|
Loading…
Reference in New Issue
Block a user