vscode-vyper icon indicating copy to clipboard operation
vscode-vyper copied to clipboard

Interfaces

Open wallneradam opened this issue 11 months ago • 0 comments

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.

wallneradam avatar Jul 28 '23 05:07 wallneradam