--- /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 --- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -115,7 +115,7 @@ // Generate next collection ID let next_id = NextCollectionID::get() .checked_add(1) - .expect("collection id error");; + .expect("collection id error"); NextCollectionID::put(next_id);