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

Interfaces #31

Open
wallneradam opened this issue Jul 28, 2023 · 0 comments
Open

Interfaces #31

wallneradam opened this issue Jul 28, 2023 · 0 comments
Labels
bug Something isn't working vyper <=0.3.10 The issue is no longer present in 0.4.x

Comments

@wallneradam
Copy link

I'm using Brownie for smart contract development. If I use interfaces folder to store interface, the file should look like this:

@nonpayable
@external
def onERC721Received(_operator: address, _from: address, _tokenId: uint256, _data: Bytes[1024]) -> bytes4:
    pass

But vscode-vyper shows error: Missing or unmatched return statements in function
It would be good to be able to exclude this folder or to make vscode-vyper to detect it is an interface. Or if the implementtation is a pass it can just ignore that kind of error.

@trocher trocher added bug Something isn't working vyper <=0.3.10 The issue is no longer present in 0.4.x labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vyper <=0.3.10 The issue is no longer present in 0.4.x
Projects
None yet
Development

No branches or pull requests

2 participants