-
Notifications
You must be signed in to change notification settings - Fork 22
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
Correct authz capabilities #495
Correct authz capabilities #495
Conversation
Deploying cw-orchestrator with Cloudflare Pages
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
|
@@ -380,7 +380,7 @@ pub async fn upload_wasm<T: TxSender>( | |||
e.write_all(&file_contents)?; | |||
let wasm_byte_code = e.finish()?; | |||
let store_msg = cosmrs::cosmwasm::MsgStoreCode { | |||
sender: sender.account_id(), | |||
sender: sender.msg_sender().map_err(Into::into)?, |
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 don't think we need to authz for uploads
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.
why not ? Some chains have permissioned uploads ! (I'm thinking Stargaze from the top of my head)
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.
Hmm interesting
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 am actually using it currently for Stargaze uploads :)
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.
cool! then LGMT :)
Authz capabilities are wrong inside cw-orch-daemon when interacting with contracts. This PR aims to correct that
Checklist