git.delta.rocks / unique-network / refs/commits / beeb27d0b818

difftreelog

Docker file + minor fix

str-mv2020-05-07parent: #c2eefad.patch.diff
in: master

2 files changed

addedDockerfilediffbeforeafterboth
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM rust:latest
+
+EXPOSE 9944
+
+# Install build tools
+RUN apt-get update && apt-get -y install -y cmake pkg-config libssl-dev git gcc build-essential clang libclang-dev curl
+RUN curl https://getsubstrate.io -sSf | bash -s -- --fast
+RUN rustup update nightly
+RUN rustup target add wasm32-unknown-unknown --toolchain nightly
+RUN rustup update
+
+# Get project and run it
+RUN git clone https://github.com/usetech-llc/nft_parachain
+RUN cd nft_parachain && cargo build
+RUN cd nft_parachain && cargo test --all
+RUN cd nft_parachain && cargo run -- --dev
\ No newline at end of file
modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
115 // Generate next collection ID115 // Generate next collection ID
116 let next_id = NextCollectionID::get()116 let next_id = NextCollectionID::get()
117 .checked_add(1)117 .checked_add(1)
118 .expect("collection id error");;118 .expect("collection id error");
119119
120 NextCollectionID::put(next_id);120 NextCollectionID::put(next_id);
121121