Code calling external contract using interface causes compilation error: Interface parameter default value not applied #2374
Labels
bug
Bug that shouldn't change language semantics when fixed.
Version Information
vyper --version
): 0.2.12python --version
): 3.8.5pip freeze
): attached as popsicle.txtpopsicle.txt
What's your issue about?
I define an interface with a default value for one of the parameters like:
This default value is not applied when omitting the parameter with the default value, like param2 in this example.
Please note:
I am unaware whether I can actually pass default values in the interface definition.
This is an assumption I made because I do this in python all the time. I could not figure it out using the vyper documentation.
what command you ran
I use the tintinweb vyper extension in VScode, which calls vyper to compile. It auto compiles when saving the file
the code that caused the failure
in this example I omit the second argument. passing 5,10 as arguments when calling the function will result in successful compilation
edits: styling and adding a bit of info
The text was updated successfully, but these errors were encountered: