git.delta.rocks / unique-network / refs/commits / 2eedf4593dca

difftreelog

Fix warnings, update Dockerfile

Greg Zaitsev2021-03-06parent: #e17babf.patch.diff
in: master

4 files changed

modifiedDockerfilediffbeforeafterboth
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,8 +3,8 @@
 FROM phusion/baseimage:18.04-1.0.0 as builder
 LABEL maintainer="UniqueNetwork.io"
 
-ENV WASM_TOOLCHAIN=nightly-2021-01-27
-ENV NATIVE_TOOLCHAIN=1.49.0
+ENV WASM_TOOLCHAIN=nightly-2021-03-01
+# ENV NATIVE_TOOLCHAIN=1.50.0
 
 ARG PROFILE=release
 
@@ -25,10 +25,10 @@
 RUN export PATH="/cargo-home/bin:$PATH" && \
     export CARGO_HOME="/cargo-home" && \
 	rustup toolchain uninstall $(rustup toolchain list) && \
-	rustup toolchain install $NATIVE_TOOLCHAIN && \
+	# rustup toolchain install $NATIVE_TOOLCHAIN && \
 	rustup toolchain install $WASM_TOOLCHAIN && \
 	rustup target add wasm32-unknown-unknown --toolchain $WASM_TOOLCHAIN && \
-	rustup default $NATIVE_TOOLCHAIN && \
+	rustup default $WASM_TOOLCHAIN && \
     rustup target list --installed && \
     rustup show
 
modifiedREADME.mddiffbeforeafterboth
--- a/README.md
+++ b/README.md
@@ -63,18 +63,17 @@
 
 2. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.
 
-3. Install stable toolchain 1.49.0 and make it default, install nightly 2021-01-27:
+3. Install install nightly 2021-03-01 and make it default:
 
 ```bash
-rustup toolchain install 1.49.0
-rustup toolchain install nightly-2020-01-27
-rustup default nightly-2021-01-27
+rustup toolchain install nightly-2021-03-01
+rustup default nightly-2021-03-01
 ```
 
 4. Add wasm target for nightly toolchain:
 
 ```bash
-rustup target add wasm32-unknown-unknown --toolchain nightly-2021-01-27
+rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-01
 ```
 
 5. Build:
modifiednode/src/service.rsdiffbeforeafterboth
--- a/node/src/service.rs
+++ b/node/src/service.rs
@@ -16,7 +16,6 @@
 use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};
 use sc_finality_grandpa::SharedVoterState;
 use sc_keystore::LocalKeystore;
-use sc_telemetry::TelemetrySpan;
 
 // Our native executor instance.
 native_executor_instance!(
modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
43};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;
4847
49#[cfg(test)]48#[cfg(test)]
11181117
1119 // Transfer permissions check1118 // Transfer permissions check
1120 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 None
1129 } else if let Some(amount) = Self::owned_amount(1126 } else if let Some(amount) = Self::owned_amount(
1130 sender.clone(),1127 sender.clone(),