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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The docs give an example of an overloaded function:
@external def add_seven(a: int128) -> int128: return a + 7 @external def add_seven_with_overloading(a: uint256, b: uint256 = 3): return a + b
And add_seven_with_overloading(10) returns 13 instead of 17. How did this happen?
add_seven_with_overloading(10)
Set the default value of b to seven instead of three. I think.
b
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What's your issue about?
The docs give an example of an overloaded function:
And
add_seven_with_overloading(10)
returns 13 instead of 17. How did this happen?How can it be fixed?
Set the default value of
b
to seven instead of three. I think.The text was updated successfully, but these errors were encountered: