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

add cargo stylus cache info msg to cargo stylus deploy #64

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

add cargo stylus cache info msg to cargo stylus deploy #64

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

Comments

@leeederek
Copy link
Member

leeederek commented Aug 7, 2024

Pain point: when using cargo-stylus, it is unclear to me when to use the cache manager and how to use it to reduce costs for future calls to the contract

Proposal: when I use cargo stylus deploy, I can see:

$ cargo stylus deploy \
    --private-key=<PRIV_KEY>

Compressed WASM size: 3 KB
Deploying program to address 0x123...
Estimated gas: 123456789
Submitting tx...
Confirmed tx 0xabc..., gas used 123456789
Activating program at address 0x456...
Estimated gas: 123456789
Submitting tx...
Confirmed tx 0xdef, gas used 123456789

INFO: Your contract is not part of the cache. To submit a bid to add your deployed contract 0x123... to the cache, please use `cargo stylus cache`

@leeederek leeederek changed the title it is unclear when to use the cache and how to use it add cargo stylus cache info msg to cargo stylus deploy Aug 7, 2024
@leeederek leeederek reopened this 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