Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

Require pwasm-utils-cli v0.6.0 in README #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions step-0/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion step-0/build.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions step-1/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion step-1/build.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions step-5/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.