Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot declare constant address #3062

Closed
tserg opened this issue Aug 11, 2022 · 2 comments
Closed

cannot declare constant address #3062

tserg opened this issue Aug 11, 2022 · 2 comments

Comments

@tserg
Copy link
Collaborator

tserg commented Aug 11, 2022

Version Information

  • vyper Version (output of vyper --version): 0.3.5+commit.c71b0238
  • OS: Linux
  • Python Version (output of python --version): 3.9.12

What's your issue about?

Please include information like:

Declaring a constant address raises an InvalidType error - expected address but literal can only be cast as bytes20

FOO: constant(address) = 0x3cd751e6b0078be393132286c442345e5dc49699

How can it be fixed?

Fill this in if you know how to fix it.

@tserg
Copy link
Collaborator Author

tserg commented Aug 11, 2022

oops address needs to be checksummed.

@tserg tserg closed this as completed Aug 11, 2022
@charles-cooper
Copy link
Member

Error message could maybe be improved tho, ex "(did you mean {check summed address}?)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants