Skip to content

Commit

Permalink
update polkadot-sdk deps to stable2407 (polkadot-evm#1484)
Browse files Browse the repository at this point in the history
* update polkadot-sdk deps to stable2407

* remove unused imports

* bump nightly version to suport upgrading curve25519-dalek

* try compiling with rustc stable
  • Loading branch information
gonzamontiel authored Aug 5, 2024
1 parent cacdfd7 commit 2e219e1
Show file tree
Hide file tree
Showing 8 changed files with 1,257 additions and 1,439 deletions.
2,530 changes: 1,177 additions & 1,353 deletions Cargo.lock

Large diffs are not rendered by default.

145 changes: 73 additions & 72 deletions Cargo.toml

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions client/consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ where
{
type Error = ConsensusError;

async fn check_block(
&mut self,
block: BlockCheckParams<B>,
) -> Result<ImportResult, Self::Error> {
async fn check_block(&self, block: BlockCheckParams<B>) -> Result<ImportResult, Self::Error> {
self.inner.check_block(block).await.map_err(Into::into)
}

Expand Down
1 change: 0 additions & 1 deletion frame/evm/precompile/dispatch/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

//! Test mock for unit tests and benchmarking
use alloc::boxed::Box;
use core::str::FromStr;
use frame_support::{
derive_impl, parameter_types,
Expand Down
1 change: 0 additions & 1 deletion frame/evm/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

//! Test mock for unit tests and benchmarking
use alloc::boxed::Box;
use core::str::FromStr;
use frame_support::{
derive_impl, parameter_types,
Expand Down
6 changes: 3 additions & 3 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[toolchain]
# Stable
#channel = "1.75.0" # rustc 1.75.0 (82e1608df 2023-12-21)
channel = "1.77.0" # rustc 1.77.0 (aedd173a2 2024-03-21)
# Nightly
channel = "nightly-2024-01-22" # rustc 1.77.0-nightly (ef71f1047 2024-01-21)
#channel = "nightly-2024-02-05" # rustc 1.78.0-nightly (f067fd608 2024-02-05)
components = ["cargo", "clippy", "rustc", "rustfmt", "rust-src", "rust-docs"]
profile = "minimal"
targets = ["wasm32-unknown-unknown"]
targets = ["wasm32-unknown-unknown"]
6 changes: 2 additions & 4 deletions template/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ use sp_core::ecdsa;
use sp_core::{Pair, Public, H160, U256};
use sp_runtime::traits::{IdentifyAccount, Verify};
// Frontier
use frontier_template_runtime::{
AccountId, Balance, RuntimeGenesisConfig, SS58Prefix, Signature, WASM_BINARY,
};
use frontier_template_runtime::{AccountId, Balance, SS58Prefix, Signature, WASM_BINARY};

// The URL for the telemetry server.
// const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";

/// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type.
pub type ChainSpec = sc_service::GenericChainSpec<RuntimeGenesisConfig>;
pub type ChainSpec = sc_service::GenericChainSpec;

/// Generate a crypto pair from seed.
pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
Expand Down
2 changes: 1 addition & 1 deletion template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extern crate alloc;
#[cfg(feature = "std")]
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));

use alloc::{boxed::Box, vec, vec::Vec};
use alloc::{vec, vec::Vec};
use core::marker::PhantomData;
use scale_codec::{Decode, Encode};
use sp_api::impl_runtime_apis;
Expand Down

0 comments on commit 2e219e1

Please sign in to comment.