We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vyper --version
python --version
Arithmetic operator are only implemented for uint8 and uint256 but the compiler could not tell it when using the addition assignment (+=).
uint8
uint256
+=
sum: uint16 = 0 equities: uint16[3] = [1, 2, 3] for equity in equities: sum += equity
$ brownie compile vyper.exceptions.UnimplementedException: <exception str() failed>
Then changed code to
sum: uint16 = 0 equities: uint16[3] = [1, 2, 3] for equity in equities: sum = sum + equity
and finally could spot the problem.
$ brownie compile vyper.exceptions.UnimplementedException: Not implemented: uint16 + uint16 contract "contracts/DaiCell.vy", function "__init__", line 25:14 24 for equity in equities: ---> 25 sum = sum + equity
The text was updated successfully, but these errors were encountered:
well, the solution is to implement it :)
tracking in #2786
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Version Information
vyper --version
): 0.3.3python --version
): 3.9.12What's your issue about?
Arithmetic operator are only implemented for
uint8
anduint256
but the compiler could not tell it when using the addition assignment (+=
).Then changed code to
and finally could spot the problem.
The text was updated successfully, but these errors were encountered: