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

How to tell which version of vyper to use? #44

Open
PatrickAlphaC opened this issue Jun 7, 2022 · 3 comments
Open

How to tell which version of vyper to use? #44

PatrickAlphaC opened this issue Jun 7, 2022 · 3 comments

Comments

@PatrickAlphaC
Copy link

Environment information

  • ape and plugin versions:
    vyper 0.2.0
    ape 0.2.7
    vyper 0.3.3+commit.48e326f

  • Python Version: 3.9.5

  • OS: osx

What went wrong?

Please include information like:

I have a contract that looks like this:

a: uint80

When I run ape compile I get:

INFO: Compiling 'MyContract.vy'.
ERROR: (VyperCompileError) vyper.exceptions.UnknownType: No builtin or user-defined type named 'uint80'
  contract "/DIR/vyper-wcbpnrwq.vy", line 26:3 
       25 #     return price
  ---> 26 a: uint80
  -----------^
       27

[19956] Failed to execute script vyper_compile

How can I tell it to use 0.3.3 of vyper?

@PatrickAlphaC
Copy link
Author

Running vyper and the contract name compiles fine

@PatrickAlphaC
Copy link
Author

Got it. Went through the code and found it grabs it from the comments:

# @version ^0.3.3

It looks like we should create docs for each plugin

@antazoey
Copy link
Member

antazoey commented Aug 19, 2022

We should also support config driven versioning

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

No branches or pull requests

2 participants