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/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 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"