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

external interface omits default parameter values #3311

Open
xrchz opened this issue Mar 5, 2023 · 1 comment
Open

external interface omits default parameter values #3311

xrchz opened this issue Mar 5, 2023 · 1 comment

Comments

@xrchz
Copy link
Contributor

xrchz commented Mar 5, 2023

Version Information

  • vyper Version (output of vyper --version): 0.3.8+commit.8ebabc5c
  • OS: GNU
  • Python Version (output of python --version): Python 3.10.9

What's your issue about?

> cat bug1.vy
@external
def foo(x: uint256 = 3):
  pass
> vyper -f external_interface bug1.vy

# External Interfaces
interface Bug1:
    def foo(x: uint256): nonpayable

If you use the interface produced directly, you cannot call Bug1.foo(). But it works if you import bug1 as Bug1.

@charles-cooper
Copy link
Member

probably related #3170

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