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

Unnecessary path for interface types in -f interface output #4299

Open
pcaversaccio opened this issue Oct 14, 2024 · 0 comments
Open

Unnecessary path for interface types in -f interface output #4299

pcaversaccio opened this issue Oct 14, 2024 · 0 comments
Assignees
Labels
bug - UX a bug related to UX

Comments

@pcaversaccio
Copy link
Collaborator

If you use an interface as type within an external function in a contract for which you output -f interface, it will use the full path. Example (see #4294 (comment)):

def distribute_token(token: .../snekmate/venv/Lib/site-packages/vyper/builtins/interfaces/IERC20.vyi, data: Batch):

There should be no path within an interface output IMHO, but simply the interface type:

def distribute_token(token: IERC20, data: Batch):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - UX a bug related to UX
Projects
None yet
Development

No branches or pull requests

4 participants
@charles-cooper @pcaversaccio @sandbubbles and others