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

cargo-stylus cache program activation error could be cleaner/more obvious #65

Closed
leeederek opened this issue Aug 7, 2024 · 0 comments · Fixed by #70
Closed

cargo-stylus cache program activation error could be cleaner/more obvious #65

leeederek opened this issue Aug 7, 2024 · 0 comments · Fixed by #70

Comments

@leeederek
Copy link
Member

When trying to cache a non-activated stylus contract, I get this long verbose error message:

➜  ~ cargo stylus cache --address 0x123 --private-key 0xabc
Error: stylus cache failed

Caused by:
    unknown CacheManager error: execution reverted: error ProgramNotActivated() and UnknownSelector { name: "CacheManagerErrors", selector: 0x6f809c4e }

Location:
    /Users/dereklee/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-stylus-check-0.4.2/src/cache.rs:79:33

I would prefer to see something like:

➜  ~ cargo stylus cache --address 0x123 --private-key 0xabc
Error: stylus cache failed, your Stylus contract 0x123 is not yet activated. To activate it, use the `cargo stylus activate` subcommand

<stack trace goes here>
@leeederek leeederek changed the title cargo-stylus cache error could be cleaner cargo-stylus cache program activation error could be cleaner/more obvious Aug 7, 2024
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

Successfully merging a pull request may close this issue.

1 participant