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

exports: interface does not work for inline interfaces #3959

Closed
charles-cooper opened this issue Apr 16, 2024 · 2 comments
Closed

exports: interface does not work for inline interfaces #3959

charles-cooper opened this issue Apr 16, 2024 · 2 comments
Labels
release - must release blocker
Milestone

Comments

@charles-cooper
Copy link
Member

charles-cooper commented Apr 16, 2024

Version Information

  • vyper Version (output of vyper --version): e1adb7b

What's your issue about?

exports: interface does not work for interfaces which were declared inline. example:

# lib.vy
from ethereum.ercs import IERC20

asset: public(immutable(IERC20))
 
interface IAsset:
    def asset() -> address: view

implements: IAsset

@deploy
def __init__(asset_: IERC20):
    asset = asset_
# main.vy

from ethereum.ercs import IERC20

import lib
initializes: lib

exports: lib.IAsset

@deploy
def __init__(asset_: IERC20):
    lib.__init__(asset_)
@charles-cooper
Copy link
Member Author

mildly related: #3954

@charles-cooper
Copy link
Member Author

fixed in #4090

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

No branches or pull requests

2 participants