Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upInterface implementation enforcing units? #1303
Closed
Labels
Comments
This comment has been minimized.
This comment has been minimized.
Thanks @robrobbins ! I think we should just fix it - ABI can't specify units - so unit checking at this level should be ignored. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version Information
vyper --version
): 0.1.0b8python --version
): 3.6pip freeze
):pkg-resources==0.0.0
pycryptodome==3.7.3
vyper==0.1.0b8
What's your issue about?
Compiler erroneously enforcing units on interface method returns
full output of the error you received:
vyper.exceptions.StructureException: Contract does not comply to supplied Interface(s).
Missing interface functions:
... ( any method that does not match the return unit. Returning wei_value vs uint256 for example )
what command you ran: vyper
the code that caused the failure (see this link for help with formatting code)
@public
@constant
def balanceOf(owner: address) -> wei_value:
return self.balances[owner]
How can it be fixed?
Wave a magic wand whilst yelling Non Expecto Metrum!