From 8f066aac0c2b349e9e0576c24e1b4410f65c84a7 Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Thu, 11 Jul 2019 13:47:50 +0200 Subject: [PATCH 1/2] Require pwasm-utils-cli v0.6.0 in README The was code produced with `pwasm-utils-cli` above version 0.6.0 does not execute properly on the parity client. We require version 0.6.0 in the readme. Fixes #48 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34d41b8..6145750 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ rustup target add wasm32-unknown-unknown ``` ### Parity wasm-build -[wasm-build](https://github.com/paritytech/wasm-utils#build-tools-for-cargo) takes the raw `.wasm` file produced by Rust compiler and packs it to the form of valid contract. +[wasm-build](https://github.com/paritytech/wasm-utils#build-tools-for-cargo) takes the raw `.wasm` file produced by Rust compiler and packs it to the form of valid contract. You will need version `0.6.0` for this tutorial to work. ``` -cargo install pwasm-utils-cli --bin wasm-build +cargo install pwasm-utils-cli --version 0.6.0 --bin wasm-build ``` ### Parity From cbb9d2fbcf770b139ea0f0278cc94dc00634f7bb Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Thu, 11 Jul 2019 15:12:28 +0200 Subject: [PATCH 2/2] fixup! Require pwasm-utils-cli v0.6.0 in README --- .travis.yml | 2 +- step-0/Cargo.lock | 2 ++ step-0/build.sh | 2 +- step-1/Cargo.lock | 2 ++ step-1/build.sh | 2 +- step-5/Cargo.lock | 2 ++ 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5799b14..5d2d2ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ rust: - nightly before_install: - rustup target add wasm32-unknown-unknown - - command -v wasm-build || cargo install pwasm-utils-cli --bin wasm-build + - command -v wasm-build || cargo install pwasm-utils-cli --version 0.6.0 --bin wasm-build - ./wasm-install.sh env: - TUTOR_DIR=step-0 diff --git a/step-0/Cargo.lock b/step-0/Cargo.lock index 3044bf2..5c13be8 100644 --- a/step-0/Cargo.lock +++ b/step-0/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "byteorder" version = "1.3.0" diff --git a/step-0/build.sh b/step-0/build.sh index 0642733..9c3156b 100755 --- a/step-0/build.sh +++ b/step-0/build.sh @@ -1,4 +1,4 @@ #!/bin/bash cargo build --release --target wasm32-unknown-unknown -wasm-build --target=wasm32-unknown-unknown ./target pwasm_tutorial_contract +wasm-build --target=wasm32-unknown-unknown --skip-optimization ./target pwasm_tutorial_contract diff --git a/step-1/Cargo.lock b/step-1/Cargo.lock index 3044bf2..5c13be8 100644 --- a/step-1/Cargo.lock +++ b/step-1/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "byteorder" version = "1.3.0" diff --git a/step-1/build.sh b/step-1/build.sh index 0642733..9c3156b 100755 --- a/step-1/build.sh +++ b/step-1/build.sh @@ -1,4 +1,4 @@ #!/bin/bash cargo build --release --target wasm32-unknown-unknown -wasm-build --target=wasm32-unknown-unknown ./target pwasm_tutorial_contract +wasm-build --target=wasm32-unknown-unknown --skip-optimization ./target pwasm_tutorial_contract diff --git a/step-5/Cargo.lock b/step-5/Cargo.lock index d187a74..d810bf0 100644 --- a/step-5/Cargo.lock +++ b/step-5/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "bitflags" version = "1.0.4"