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

fix: permissioned upload condition #327

Merged
merged 8 commits into from
May 15, 2023

Conversation

tansawit
Copy link
Contributor

Describe your changes

Previously, the condition that Celatone uses to check whether to disable uploading codes to a network is whether the network is mainnet. This works in the case of Osmosis. However, as we start to support other networks, this condition no longer apply.

Instead, this PR changes the condition to checking the wasm module's code_upload_access permission field using the current network's LCD. If the field value is "Everybody", we will allow the user to upload code on the network, and no otherwise

@vercel
Copy link

vercel bot commented May 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
osmosis-celatone-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2023 4:04am
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
beeb-celatone-frontend ⬜️ Ignored (Inspect) May 15, 2023 4:04am
mitosis-celatone-frontend-staging ⬜️ Ignored (Inspect) May 15, 2023 4:04am
neutron-celatone-frontend-staging ⬜️ Ignored (Inspect) May 15, 2023 4:04am
osmosis-celatone-frontend ⬜️ Ignored (Inspect) May 15, 2023 4:04am
sei-celatone-frontend-staging ⬜️ Ignored (Inspect) May 15, 2023 4:04am
stargaze-celatone-frontend-staging ⬜️ Ignored (Inspect) May 15, 2023 4:04am
terra-celatone-frontend ⬜️ Ignored (Inspect) May 15, 2023 4:04am
terra-celatone-frontend-staging ⬜️ Ignored (Inspect) May 15, 2023 4:04am

CHANGELOG.md Outdated Show resolved Hide resolved
@evilpeach evilpeach changed the title fix: fix permissioned upload condition fix: permissioned upload condition May 15, 2023
@poomthiti poomthiti merged commit c1ec39f into develop May 15, 2023
3 checks passed
@poomthiti poomthiti deleted the fix/permissioned-network-condition branch May 15, 2023 04:07
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.

None yet

3 participants