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

feat: update cosmwasm/rust-optimizer to v0.14.0 #137

Merged
merged 1 commit into from
May 2, 2024

Conversation

FranklinWaller
Copy link
Member

Motivation

Contracts could not be deployed/build, because it was using v0.12.11 and we are using versions from a higher rust version.

Explanation of Changes

  • Change pipelines to use v0.14.0 and modified the readme

Testing

The following command now builds:

docker run --rm -v $GITHUB_WORKSPACE:/code \
          --mount type=volume,source=contract_cache,target=/code/target \
          --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
          cosmwasm/rust-optimizer:0.14.0

while the old gave:

error[E0658]: use of unstable library feature 'is_some_and'
   --> packages/staking/src/staking.rs:195:26
    |
195 |         if pending_owner.is_some_and(|owner| owner != info.sender) {
    |                          ^^^^^^^^^^^
    |
    = note: see issue #93050 <https://github.com/rust-lang/rust/issues/93050> for more information

@FranklinWaller FranklinWaller requested a review from a team May 2, 2024 13:11
@FranklinWaller FranklinWaller merged commit c205a0b into main May 2, 2024
4 checks passed
@gluax gluax deleted the fix/deploying branch May 2, 2024 16:06
@gluax gluax restored the fix/deploying branch May 2, 2024 16:06
@gluax gluax deleted the fix/deploying branch May 3, 2024 17: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