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

Correct authz capabilities #495

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

Kayanski
Copy link
Contributor

Authz capabilities are wrong inside cw-orch-daemon when interacting with contracts. This PR aims to correct that

Checklist

  • Changelog updated.
  • Docs updated.

Copy link

cloudflare-workers-and-pages bot commented Sep 26, 2024

Deploying cw-orchestrator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0847bc9
Status: ✅  Deploy successful!
Preview URL: https://fbd99eb7.cw-orchestrator.pages.dev
Branch Preview URL: https://nicolas-orc-172-authz-messag.cw-orchestrator.pages.dev

View logs

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 69.23077% with 4 lines in your changes missing coverage. Please review.

Project coverage is 57.0%. Comparing base (5fe212f) to head (0847bc9).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
cw-orch-daemon/src/senders/tx.rs 0.0% 3 Missing ⚠️
cw-orch-daemon/src/core.rs 75.0% 1 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
cw-orch-daemon/src/senders/cosmos.rs 57.6% <100.0%> (+0.3%) ⬆️
cw-orch-daemon/src/core.rs 49.8% <75.0%> (ø)
cw-orch-daemon/src/senders/tx.rs 84.2% <0.0%> (-15.8%) ⬇️

@@ -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)?,
Copy link
Contributor

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

Copy link
Contributor Author

@Kayanski Kayanski Sep 30, 2024

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)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm interesting

Copy link
Contributor Author

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 :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool! then LGMT :)

@Kayanski Kayanski merged commit aad7559 into main Sep 30, 2024
15 checks passed
@Kayanski Kayanski deleted the nicolas/orc-172-authz-message-sender-is-the-wrong-one branch September 30, 2024 14:01
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 this pull request may close these issues.

2 participants