Skip to content

Commit

Permalink
Divide the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
pmnoxx committed Dec 22, 2021
1 parent 4c7563b commit b0de5e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/crypto/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use rand_core::OsRng;
use secp256k1::Message;
use serde::{Deserialize, Serialize};

pub static SECP256K1: Lazy<secp256k1::Secp256k1> = Lazy::new(|| secp256k1::Secp256k1::new());
pub static SECP256K1: Lazy<secp256k1::Secp256k1> = Lazy::new(secp256k1::Secp256k1::new);

#[derive(Debug, Copy, Clone, Serialize, Deserialize)]
pub enum KeyType {
Expand Down
4 changes: 2 additions & 2 deletions test-utils/runtime-tester/src/scenario_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl ScenarioBuilder {
/// Creates builder with an empty scenario with 4 accounts.
/// Default `use_in_memory_store` -- true.
pub fn new() -> Self {
let network_config = NetworkConfig { seeds: (0..4).map(|x| id_to_seed(x)).collect() };
let network_config = NetworkConfig { seeds: (0..4).map(id_to_seed).collect() };
let runtime_config = RuntimeConfig {
max_total_prepaid_gas: 300 * 10u64.pow(12),
gas_limit: 1_000_000_000_000_000,
Expand All @@ -68,7 +68,7 @@ impl ScenarioBuilder {
/// Changes number of accounts to `num_accounts`.
pub fn number_of_accounts(mut self, num_accounts: usize) -> Self {
self.scenario.network_config =
NetworkConfig { seeds: (0..num_accounts).map(|x| id_to_seed(x)).collect() };
NetworkConfig { seeds: (0..num_accounts).map(id_to_seed).collect() };
self
}

Expand Down

0 comments on commit b0de5e7

Please # to comment.