mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
byte is now an alias for byte1
This commit is contained in:
parent
cd3e8c1756
commit
b8cede371d
1
Token.h
1
Token.h
@ -286,6 +286,7 @@ namespace solidity
|
|||||||
K(Bytes31, "bytes31", 0) \
|
K(Bytes31, "bytes31", 0) \
|
||||||
K(Bytes32, "bytes32", 0) \
|
K(Bytes32, "bytes32", 0) \
|
||||||
K(Bytes, "bytes", 0) \
|
K(Bytes, "bytes", 0) \
|
||||||
|
K(Byte, "byte", 0) \
|
||||||
K(Address, "address", 0) \
|
K(Address, "address", 0) \
|
||||||
K(Bool, "bool", 0) \
|
K(Bool, "bool", 0) \
|
||||||
K(StringType, "string", 0) \
|
K(StringType, "string", 0) \
|
||||||
|
@ -61,6 +61,8 @@ TypePointer Type::fromElementaryTypeName(Token::Value _typeToken)
|
|||||||
return TypePointer();
|
return TypePointer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (_typeToken == Token::Byte)
|
||||||
|
return make_shared<FixedBytesType>(1);
|
||||||
else if (_typeToken == Token::Address)
|
else if (_typeToken == Token::Address)
|
||||||
return make_shared<IntegerType>(0, IntegerType::Modifier::Address);
|
return make_shared<IntegerType>(0, IntegerType::Modifier::Address);
|
||||||
else if (_typeToken == Token::Bool)
|
else if (_typeToken == Token::Bool)
|
||||||
|
Loading…
Reference in New Issue
Block a user