Skip to content

Commit

Permalink
Disable integer sign extensions (#139)
Browse files Browse the repository at this point in the history
* Update to recent (post 1.69) nightly

* Build without LLVM sign extensions

* Satisfy clippy
  • Loading branch information
rafal-ch authored May 30, 2024
1 parent bf910ab commit d6348eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ prepare:
rustup target add wasm32-unknown-unknown
rustup component add clippy --toolchain ${PINNED_TOOLCHAIN}
rustup component add rustfmt --toolchain ${PINNED_TOOLCHAIN}
rustup component add rust-src --toolchain ${PINNED_TOOLCHAIN}

.PHONY: build-contract
build-contract:
cargo build --release --target wasm32-unknown-unknown -p cep18
cargo build --release --target wasm32-unknown-unknown -p cep18-test-contract
RUSTFLAGS="-C target-cpu=mvp" cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -p cep18
RUSTFLAGS="-C target-cpu=mvp" cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -p cep18-test-contract
wasm-strip target/wasm32-unknown-unknown/release/cep18.wasm
wasm-strip target/wasm32-unknown-unknown/release/cep18_test_contract.wasm

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2023-03-25
nightly-2024-05-28
3 changes: 1 addition & 2 deletions tests/src/utility/installer_request_builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ pub(crate) fn get_test_result<T: FromBytes + CLTyped>(
let enabled_versions = contract_package.enabled_versions();
let (_version, contract_hash) = enabled_versions
.iter()
.rev()
.next()
.next_back()
.expect("should have latest version");

builder.get_value(*contract_hash, RESULT_KEY)
Expand Down

0 comments on commit d6348eb

Please sign in to comment.