diff --git a/.cargo/config b/.cargo/config.toml similarity index 100% rename from .cargo/config rename to .cargo/config.toml diff --git a/Cargo.lock b/Cargo.lock index a7f5a19838113607ee136bdbc46d7a9e137b47f0..ca7234185d83d9a9f5fe26418a3f294274f2ce04 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,16 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. - - -# Due to https://git.duniter.org/nodes/rust/duniter-v2s/-/issues/193 -# the lock file cannot be generated entirely automatically. -# If necessary, follow this process: -# cargo update -# git add -p Cargo.lock -# Accept all modifications except for curve25519-dalek 4.1.1 -> 4.1.2. -# git reset --hard - - version = 3 [[package]] @@ -84,9 +73,9 @@ dependencies = [ [[package]] name = "ahash" -version = "0.7.7" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ "getrandom 0.2.12", "once_cell", @@ -95,9 +84,9 @@ dependencies = [ [[package]] name = "ahash" -version = "0.8.7" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01" +checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff" dependencies = [ "cfg-if", "getrandom 0.2.12", @@ -1146,9 +1135,9 @@ checksum = "e1e5f035d16fc623ae5f74981db80a439803888314e3a555fd6f04acd51a3205" [[package]] name = "bytemuck" -version = "1.14.2" +version = "1.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea31d69bda4949c1c1562c1e6f042a1caefac98cdc8a298260a2ff41c1e2d42b" +checksum = "a2ef034f05691a48569bd920a96c81b9d91bbad1ab5ac7c4616c1f6ef36cb79f" [[package]] name = "byteorder" @@ -1194,9 +1183,9 @@ dependencies = [ [[package]] name = "cargo-platform" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceed8ef69d8518a5dda55c07425450b58a4e1946f4951eab6d7191ee86c2443d" +checksum = "694c8807f2ae16faecc43dc17d74b3eb042482789fd0eb64b39a2e04e087053f" dependencies = [ "serde", ] @@ -1236,9 +1225,9 @@ dependencies = [ [[package]] name = "cfg-expr" -version = "0.15.6" +version = "0.15.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6100bc57b6209840798d95cb2775684849d332f7bd788db2a8c8caf7ef82a41a" +checksum = "fa50868b64a9a6fda9d593ce778849ea8715cd2a3d2cc17ffdb4a2f2f2f1961d" dependencies = [ "smallvec", ] @@ -1291,9 +1280,9 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.33" +version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb" +checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b" dependencies = [ "android-tzdata", "iana-time-zone", @@ -1751,9 +1740,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.3.2" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa" dependencies = [ "cfg-if", ] @@ -1967,9 +1956,9 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "4.1.1" +version = "4.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89b8c6a2e4b1f45971ad09761aafb85514a84744b67a95e32c3cc1352d1f65c" +checksum = "0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348" dependencies = [ "cfg-if", "cpufeatures", @@ -1995,9 +1984,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.115" +version = "1.0.116" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8de00f15a6fa069c99b88c5c78c4541d0e7899a33b86f7480e23df2431fce0bc" +checksum = "8aff472b83efd22bfc0176aa8ba34617dd5c17364670eb201a5f06d339b8abf7" dependencies = [ "cc", "cxxbridge-flags", @@ -2007,9 +1996,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.115" +version = "1.0.116" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a71e1e631fa2f2f5f92e8b0d860a00c198c6771623a6cefcc863e3554f0d8d6" +checksum = "bcf6e7a52c19013a9a0ec421c7d9c2d1125faf333551227e0a017288d71b47c3" dependencies = [ "cc", "codespan-reporting", @@ -2022,15 +2011,15 @@ dependencies = [ [[package]] name = "cxxbridge-flags" -version = "1.0.115" +version = "1.0.116" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f3fed61d56ba497c4efef9144dfdbaa25aa58f2f6b3a7cf441d4591c583745c" +checksum = "589e83d02fc1d4fb78f5ad56ca08835341e23499d086d2821315869426d618dc" [[package]] name = "cxxbridge-macro" -version = "1.0.115" +version = "1.0.116" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8908e380a8efd42150c017b0cfa31509fc49b6d47f7cb6b33e93ffb8f4e3661e" +checksum = "e2cb1fd8ffae4230c7cfbbaf3698dbeaf750fa8c5dadf7ed897df581b9b572a5" dependencies = [ "proc-macro2", "quote", @@ -2582,11 +2571,11 @@ dependencies = [ [[package]] name = "ed25519-dalek" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f628eaec48bfd21b865dc2950cfa014450c01d2fa2b69a86c2fd5844ec523c0" +checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ - "curve25519-dalek 4.1.1", + "curve25519-dalek 4.1.2", "ed25519", "rand_core 0.6.4", "serde", @@ -2615,7 +2604,7 @@ version = "4.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d9ce6874da5d4415896cd45ffbc4d1cfc0c4f9c079427bd870742c30f2f65a9" dependencies = [ - "curve25519-dalek 4.1.1", + "curve25519-dalek 4.1.2", "ed25519", "hashbrown 0.14.3", "hex", @@ -2626,9 +2615,9 @@ dependencies = [ [[package]] name = "either" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" +checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" [[package]] name = "elliptic-curve" @@ -3899,7 +3888,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 2.2.2", + "indexmap 2.2.3", "slab", "tokio", "tokio-util", @@ -3941,7 +3930,7 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "ahash 0.7.7", + "ahash 0.7.8", ] [[package]] @@ -3950,7 +3939,7 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.7", + "ahash 0.8.8", ] [[package]] @@ -3959,7 +3948,7 @@ version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" dependencies = [ - "ahash 0.8.7", + "ahash 0.8.8", "allocator-api2", "serde", ] @@ -4318,9 +4307,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.2" +version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "824b2ae422412366ba479e8111fd301f7b5faece8149317bb81925979a53f520" +checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177" dependencies = [ "equivalent", "hashbrown 0.14.3", @@ -4334,9 +4323,9 @@ checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" [[package]] name = "indicatif" -version = "0.17.7" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb28741c9db9a713d93deb3bb9515c20788cef5815265bee4980e87bde7e0f25" +checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" dependencies = [ "console", "instant", @@ -4441,12 +4430,12 @@ checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "is-terminal" -version = "0.4.10" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bad00257d07be169d870ab665980b06cdb366d792ad690bf2e76876dc503455" +checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" dependencies = [ "hermit-abi", - "rustix 0.38.31", + "libc", "windows-sys 0.52.0", ] @@ -5677,7 +5666,7 @@ dependencies = [ "bitflags 1.3.2", "blake2 0.10.6", "c2-chacha", - "curve25519-dalek 4.1.1", + "curve25519-dalek 4.1.2", "either", "hashlink", "lioness", @@ -7053,7 +7042,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", - "indexmap 2.2.2", + "indexmap 2.2.3", ] [[package]] @@ -8430,7 +8419,7 @@ name = "sc-consensus-grandpa" version = "0.10.0-dev" source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.6.0#c84530c57a6f9ab808a92f6b5d29338acf1c6e4f" dependencies = [ - "ahash 0.8.7", + "ahash 0.8.8", "array-bytes 6.2.2", "async-trait", "dyn-clone", @@ -8722,7 +8711,7 @@ name = "sc-network-gossip" version = "0.10.0-dev" source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.6.0#c84530c57a6f9ab808a92f6b5d29338acf1c6e4f" dependencies = [ - "ahash 0.8.7", + "ahash 0.8.8", "futures 0.3.30", "futures-timer", "libp2p", @@ -9303,7 +9292,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" dependencies = [ - "ahash 0.8.7", + "ahash 0.8.8", "cfg-if", "hashbrown 0.13.2", ] @@ -9333,7 +9322,7 @@ dependencies = [ "aead", "arrayref", "arrayvec 0.7.4", - "curve25519-dalek 4.1.1", + "curve25519-dalek 4.1.2", "getrandom_or_panic", "merlin 3.0.0", "rand_core 0.6.4", @@ -9532,7 +9521,7 @@ version = "0.9.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adf8a49373e98a4c5f0ceb5d05aa7c648d75f63774981ed95b7c7443bbd50c6e" dependencies = [ - "indexmap 2.2.2", + "indexmap 2.2.3", "itoa", "ryu", "serde", @@ -9778,7 +9767,7 @@ dependencies = [ "soketto", "twox-hash", "wasmi", - "x25519-dalek 2.0.0", + "x25519-dalek 2.0.1", "zeroize", ] @@ -9833,7 +9822,7 @@ dependencies = [ "aes-gcm", "blake2 0.10.6", "chacha20poly1305", - "curve25519-dalek 4.1.1", + "curve25519-dalek 4.1.2", "rand_core 0.6.4", "ring 0.17.7", "rustc_version", @@ -10153,7 +10142,7 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -10193,7 +10182,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" dependencies = [ "proc-macro2", "quote", @@ -10229,7 +10218,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" dependencies = [ "environmental", "parity-scale-codec", @@ -10428,7 +10417,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -10460,7 +10449,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" dependencies = [ "Inflector", "expander", @@ -10526,7 +10515,7 @@ version = "4.0.0-dev" source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.6.0#c84530c57a6f9ab808a92f6b5d29338acf1c6e4f" dependencies = [ "aes-gcm", - "curve25519-dalek 4.1.1", + "curve25519-dalek 4.1.2", "ed25519-dalek", "hkdf", "parity-scale-codec", @@ -10541,7 +10530,7 @@ dependencies = [ "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "thiserror", - "x25519-dalek 2.0.0", + "x25519-dalek 2.0.1", ] [[package]] @@ -10552,7 +10541,7 @@ source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-sub [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" [[package]] name = "sp-storage" @@ -10570,7 +10559,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10608,7 +10597,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" dependencies = [ "parity-scale-codec", "sp-std 14.0.0", @@ -10646,7 +10635,7 @@ name = "sp-trie" version = "22.0.0" source = "git+https://github.com/duniter/duniter-polkadot-sdk?branch=duniter-substrate-v1.6.0#c84530c57a6f9ab808a92f6b5d29338acf1c6e4f" dependencies = [ - "ahash 0.8.7", + "ahash 0.8.8", "hash-db", "lazy_static", "memory-db", @@ -10709,7 +10698,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#c36c51cac3444d65f512aafaa79647712d6f3b8a" +source = "git+https://github.com/paritytech/polkadot-sdk#4c96dca661654ca7511a11f7626d0b677256d3a7" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -11257,18 +11246,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.56" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" +checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.56" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" +checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" dependencies = [ "proc-macro2", "quote", @@ -11490,7 +11479,7 @@ version = "0.20.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" dependencies = [ - "indexmap 2.2.2", + "indexmap 2.2.3", "toml_datetime", "winnow", ] @@ -11501,7 +11490,7 @@ version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" dependencies = [ - "indexmap 2.2.2", + "indexmap 2.2.3", "toml_datetime", "winnow", ] @@ -11512,7 +11501,7 @@ version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c9ffdf896f8daaabf9b66ba8e77ea1ed5ed0f72821b398aba62352e95062951" dependencies = [ - "indexmap 2.2.2", + "indexmap 2.2.3", "serde", "serde_spanned", "toml_datetime", @@ -12770,9 +12759,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "winnow" -version = "0.5.39" +version = "0.5.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5389a154b01683d28c77f8f68f49dea75f0a4da32557a58f68ee51ebba472d29" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" dependencies = [ "memchr", ] @@ -12809,11 +12798,11 @@ dependencies = [ [[package]] name = "x25519-dalek" -version = "2.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb66477291e7e8d2b0ff1bcb900bf29489a9692816d79874bea351e7a8b6de96" +checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" dependencies = [ - "curve25519-dalek 4.1.1", + "curve25519-dalek 4.1.2", "rand_core 0.6.4", "serde", "zeroize", diff --git a/node/src/command.rs b/node/src/command.rs index 10473a1e8507391b7d9c2ffc1f8e6beb453c1634..0173cf03f01b23283029739cdfbeab1b96b2a1c7 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -15,6 +15,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#![allow(unused_imports)] + pub mod key; pub mod utils; @@ -24,10 +26,8 @@ use crate::cli::{Cli, Subcommand}; #[cfg(feature = "g1")] use crate::service::g1_executor::G1Executor; #[cfg(feature = "gdev")] -#[cfg(feature = "runtime-benchmarks")] use crate::service::gdev_executor::GDevExecutor; #[cfg(feature = "gtest")] -#[cfg(feature = "runtime-benchmarks")] use crate::service::gtest_executor::GTestExecutor; use crate::service::{IdentifyRuntimeType, RuntimeType}; use crate::{chain_spec, service}; diff --git a/node/src/service.rs b/node/src/service.rs index 35768f20485af832830b9ed79517fc80e3373243..134e7e49e1ca0596d56cc6ab06897cb2ad246c8e 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -48,6 +48,7 @@ type FullClient<RuntimeApi> = type FullBackend = sc_service::TFullBackend<Block>; type FullSelectChain = sc_consensus::LongestChain<FullBackend, Block>; +#[allow(dead_code)] #[cfg(feature = "gdev")] pub mod gdev_executor { pub use gdev_runtime; @@ -66,6 +67,7 @@ pub mod gdev_executor { } } +#[allow(dead_code)] #[cfg(feature = "g1")] pub mod g1_executor { pub use g1_runtime; @@ -84,6 +86,7 @@ pub mod g1_executor { } } +#[allow(dead_code)] #[cfg(feature = "gtest")] pub mod gtest_executor { pub use gtest_runtime; diff --git a/pallets/distance/src/lib.rs b/pallets/distance/src/lib.rs index ddcff521833871062ddab62fe08951f7d37705c1..4860ff4b4f9e9b9a25a1bc0016500021200559dd 100644 --- a/pallets/distance/src/lib.rs +++ b/pallets/distance/src/lib.rs @@ -555,7 +555,7 @@ pub mod pallet { } Some(false) => { // negative result, slash and deposit event - T::Currency::slash_reserved( + let _ = T::Currency::slash_reserved( &requester, <T as Config>::EvaluationPrice::get(), ); diff --git a/pallets/oneshot-account/src/lib.rs b/pallets/oneshot-account/src/lib.rs index 0c86b3ce425d5bd0028745615e0d3d3a7f7db50c..637debf4d6ee77bd9aac739bc967ee57048a1d58 100644 --- a/pallets/oneshot-account/src/lib.rs +++ b/pallets/oneshot-account/src/lib.rs @@ -147,7 +147,7 @@ pub mod pallet { Error::<T>::OneshotAccountAlreadyCreated ); - <T::Currency as Currency<T::AccountId>>::withdraw( + let _ = <T::Currency as Currency<T::AccountId>>::withdraw( &transactor, value, WithdrawReasons::TRANSFER, @@ -206,7 +206,8 @@ pub mod pallet { creator: transactor.clone(), }); } else { - <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest, value)?; + let _ = + <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest, value)?; } OneshotAccounts::<T>::remove(&transactor); Self::deposit_event(Event::OneshotAccountConsumed { @@ -295,7 +296,9 @@ pub mod pallet { creator: transactor.clone(), }); } else { - <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest2, balance2)?; + let _ = <T::Currency as Currency<T::AccountId>>::deposit_into_existing( + &dest2, balance2, + )?; } if dest1_is_oneshot { OneshotAccounts::<T>::insert(&dest1, balance1); @@ -305,7 +308,9 @@ pub mod pallet { creator: transactor.clone(), }); } else { - <T::Currency as Currency<T::AccountId>>::deposit_into_existing(&dest1, balance1)?; + let _ = <T::Currency as Currency<T::AccountId>>::deposit_into_existing( + &dest1, balance1, + )?; } OneshotAccounts::<T>::remove(&transactor); Self::deposit_event(Event::OneshotAccountConsumed { diff --git a/pallets/universal-dividend/src/lib.rs b/pallets/universal-dividend/src/lib.rs index 7a446c483d96c9a92fd1eb31031ad93d5941c9e4..a360fbdf4a9cac88631fd1353e33822fa57fdea2 100644 --- a/pallets/universal-dividend/src/lib.rs +++ b/pallets/universal-dividend/src/lib.rs @@ -305,7 +305,7 @@ pub mod pallet { core::num::NonZeroU16::new(current_ud_index) .expect("unreachable because current_ud_index is never zero."), ); - T::Currency::deposit_creating(who, uds_total); + let _ = T::Currency::deposit_creating(who, uds_total); Self::deposit_event(Event::UdsClaimed { count: uds_count, total: uds_total, @@ -443,7 +443,7 @@ pub mod pallet { first_ud_index, PastReevals::<T>::get().into_iter(), ); - T::Currency::deposit_creating(who, uds_total); + let _ = T::Currency::deposit_creating(who, uds_total); Self::deposit_event(Event::UdsAutoPaid { count: uds_count, total: uds_total, diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5e98fede28ca46517d26e8496c6493b4ea4a4acd..259cec803ea4691f467d1a1f4c489c0102725d6b 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2023-10-31" +channel = "nightly-2024-02-08" components = [ "rustfmt", "clippy", "rust-std", "cargo", "rust-src" ] targets = [ "wasm32-unknown-unknown" ] profile = "minimal"