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

Prevent store-contract spamming #75

Open
daniel-farina opened this issue Jul 11, 2022 · 0 comments
Open

Prevent store-contract spamming #75

daniel-farina opened this issue Jul 11, 2022 · 0 comments

Comments

@daniel-farina
Copy link
Contributor

I think it would be great if we can prevent beaker from uploading the same contract multiple times on the testnet. For example keep track of hashes/uploader address and if a hash was previously uploaded by the same address then return the existing code instead.

Upload contract:

beaker wasm proposal store-code --proposal prop.yml --signer-account test1 --network testnet counter --gas 25000000uosmo --gas-limit 25000000

Keep track of the artifact/counter.wasm hash & code_id and admin address?

If the users runs the same command again and the hash of the wasm is the same as the one previously uploaded, then return the code_id instead.

This contract was already uploaded. The code_id is: xxxx

This can be added as low priority to the backlog for now.

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

1 participant