difftreelog
Fix warnings, update Dockerfile
in: master
4 files changed
Dockerfilediffbeforeafterboth3FROM phusion/baseimage:18.04-1.0.0 as builder3FROM phusion/baseimage:18.04-1.0.0 as builder4LABEL maintainer="UniqueNetwork.io"4LABEL maintainer="UniqueNetwork.io"556ENV WASM_TOOLCHAIN=nightly-2021-01-276ENV WASM_TOOLCHAIN=nightly-2021-03-017ENV NATIVE_TOOLCHAIN=1.49.07# ENV NATIVE_TOOLCHAIN=1.50.0889ARG PROFILE=release9ARG PROFILE=release101025RUN export PATH="/cargo-home/bin:$PATH" && \25RUN export PATH="/cargo-home/bin:$PATH" && \26 export CARGO_HOME="/cargo-home" && \26 export CARGO_HOME="/cargo-home" && \27 rustup toolchain uninstall $(rustup toolchain list) && \27 rustup toolchain uninstall $(rustup toolchain list) && \28 rustup toolchain install $NATIVE_TOOLCHAIN && \28 # rustup toolchain install $NATIVE_TOOLCHAIN && \29 rustup toolchain install $WASM_TOOLCHAIN && \29 rustup toolchain install $WASM_TOOLCHAIN && \30 rustup target add wasm32-unknown-unknown --toolchain $WASM_TOOLCHAIN && \30 rustup target add wasm32-unknown-unknown --toolchain $WASM_TOOLCHAIN && \31 rustup default $NATIVE_TOOLCHAIN && \31 rustup default $WASM_TOOLCHAIN && \32 rustup target list --installed && \32 rustup target list --installed && \33 rustup show33 rustup show3434README.mddiffbeforeafterboth6363642. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.642. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.6565663. Install stable toolchain 1.49.0 and make it default, install nightly 2021-01-27:663. Install install nightly 2021-03-01 and make it default:676768```bash68```bash69rustup toolchain install 1.49.069rustup toolchain install nightly-2021-03-0170rustup toolchain install nightly-2020-01-2771rustup default nightly-2021-01-2770rustup default nightly-2021-03-0172```71```7372744. Add wasm target for nightly toolchain:734. Add wasm target for nightly toolchain:757476```bash75```bash77rustup target add wasm32-unknown-unknown --toolchain nightly-2021-01-2776rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-0178```77```7978805. Build:795. Build:node/src/service.rsdiffbeforeafterboth16use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};16use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};17use sc_finality_grandpa::SharedVoterState;17use sc_finality_grandpa::SharedVoterState;18use sc_keystore::LocalKeystore;18use sc_keystore::LocalKeystore;19use sc_telemetry::TelemetrySpan;201921// Our native executor instance.20// Our native executor instance.22native_executor_instance!(21native_executor_instance!(pallets/nft/src/lib.rsdiffbeforeafterboth43};43};44use sp_runtime::traits::StaticLookup;44use sp_runtime::traits::StaticLookup;45use pallet_contracts::chain_extension::UncheckedFrom;45use pallet_contracts::chain_extension::UncheckedFrom;46use pallet_contracts::*;47use pallet_transaction_payment::OnChargeTransaction;46use pallet_transaction_payment::OnChargeTransaction;484749#[cfg(test)]48#[cfg(test)]111811171119 // Transfer permissions check1118 // Transfer permissions check1120 let target_collection = <Collection<T>>::get(collection_id);1119 let target_collection = <Collection<T>>::get(collection_id);1121 let allowance_limit = if (1120 let allowance_limit = if target_collection.limits.owner_can_transfer &&1122 target_collection.limits.owner_can_transfer &&1123 Self::is_owner_or_admin_permissions(1121 Self::is_owner_or_admin_permissions(1124 collection_id,1122 collection_id,1125 sender.clone(),1123 sender.clone(),1126 )1124 ) {1127 ) {1128 None1125 None1129 } else if let Some(amount) = Self::owned_amount(1126 } else if let Some(amount) = Self::owned_amount(1130 sender.clone(),1127 sender.clone(),