Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkucharczyk committed Feb 15, 2023
1 parent c876046 commit 1e09c97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/node/testing/src/bench.rs
Expand Up @@ -42,7 +42,7 @@ use node_primitives::Block;
use sc_block_builder::BlockBuilderProvider;
use sc_client_api::{
execution_extensions::{ExecutionExtensions, ExecutionStrategies},
BlockBackend, ExecutionStrategy, HeaderBackend,
ExecutionStrategy, HeaderBackend,
};
use sc_client_db::PruningMode;
use sc_consensus::{BlockImport, BlockImportParams, ForkChoiceStrategy, ImportResult, ImportedAux};
Expand All @@ -54,7 +54,7 @@ use sp_core::{blake2_256, ed25519, sr25519, traits::SpawnNamed, ExecutionContext
use sp_inherents::InherentData;
use sp_runtime::{
generic::BlockId,
traits::{Block as BlockT, IdentifyAccount, Verify, Zero},
traits::{Block as BlockT, IdentifyAccount, Verify},
OpaqueExtrinsic,
};

Expand Down
3 changes: 1 addition & 2 deletions primitives/application-crypto/test/src/ecdsa.rs
Expand Up @@ -29,10 +29,9 @@ use substrate_test_runtime_client::{
fn ecdsa_works_in_runtime() {
let keystore = Arc::new(KeyStore::new());
let test_client = TestClientBuilder::new().set_keystore(keystore.clone()).build();
let genesis_hash = test_client.chain_info().genesis_hash;
let (signature, public) = test_client
.runtime_api()
.test_ecdsa_crypto(genesis_hash)
.test_ecdsa_crypto(test_client.chain_info().genesis_hash)
.expect("Tests `ecdsa` crypto.");

let supported_keys = SyncCryptoStore::keys(&*keystore, ECDSA).unwrap();
Expand Down

0 comments on commit 1e09c97

Please sign in to comment.