-
Notifications
You must be signed in to change notification settings - Fork 23
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
Added upload_with_access #485
Added upload_with_access #485
Conversation
Deploying cw-orchestrator with
|
Latest commit: |
93f00d5
|
Status: | ✅ Deploy successful! |
Preview URL: | https://ba61a75e.cw-orchestrator.pages.dev |
Branch Preview URL: | https://nicolas-orc-165-add-possibil.cw-orchestrator.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it would be rarely used, so LGTM. But if we want it to have nice API, don't think it makes sense for AccessType::Unspecified
AcessType::Nobody
and AcessType::Everybody
to accept addresses: Vec<String>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New API much more user friendly!
…-the-instantiate-permissions-on
cw-orch-daemon/src/core.rs
Outdated
instantiate_permission: None, | ||
instantiate_permission: access | ||
.map(|a| { | ||
let response = match a { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this into a try_into
implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not possible because AccessConfig is defined in cw-orch-core and cosmrs is not a dependency of the core crate. Moved that behavior to a function for beter readability
This PR aims at allowing users to upload cosmwasm contracts with instantiate permission settings.
Checklist