I have read vyper documentation and there is something strange: I only see uint256 and int128 data types for integer values.

There is no way to create an uint8 for example in vyper ?



Nope, there are no uint/int types in recent vyper versions except uint256 and int128

There used to be in the early beta releases I believe, but they were removed since, check out this for some older release notes involving changes to int128

Vyper has auditability, security, and readability as it's priorities and decided it was easier to understand contracts when there are only two integer types rather than a slew of them

For those looking for the official docs on how to use them, here you go https://vyper.readthedocs.io/en/stable/types.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.