diff --git a/node/src/chain_spec/mod.rs b/node/src/chain_spec/mod.rs index 5fcec8d..068e7bd 100644 --- a/node/src/chain_spec/mod.rs +++ b/node/src/chain_spec/mod.rs @@ -1,6 +1,6 @@ use serde::{Deserialize, Serialize}; -use sp_core::{bytes::from_hex, ecdsa, H160, H256, U256}; use sp_consensus_grandpa::AuthorityId as GrandpaId; +use sp_core::{bytes::from_hex, ecdsa, H160, H256, U256}; use stability_runtime::{AccountId, GenesisConfig, Precompiles, ValidatorFeeSelectorConfig}; use std::{collections::BTreeMap, str::FromStr, vec}; // Substrate @@ -13,8 +13,8 @@ use stability_runtime::{opaque::SessionKeys, EnableManualSeal, Signature}; pub mod alphanet; pub mod betanet; pub mod dev; -pub mod testnet; pub mod mainnet; +pub mod testnet; // The URL for the telemetry server. // const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/"; @@ -147,19 +147,17 @@ pub fn base_genesis( accounts: { let mut map = BTreeMap::new(); let revert_bytecode = vec![0x60, 0x00, 0x60, 0x00, 0xFD]; - Precompiles::used_addresses() - .into_iter() - .for_each(|addr| { - map.insert( - H160(addr.0), - fp_evm::GenesisAccount { - nonce: Default::default(), - balance: Default::default(), - storage: Default::default(), - code: revert_bytecode.clone(), - }, - ); - }); + Precompiles::used_addresses().into_iter().for_each(|addr| { + map.insert( + H160(addr.0), + fp_evm::GenesisAccount { + nonce: Default::default(), + balance: Default::default(), + storage: Default::default(), + code: revert_bytecode.clone(), + }, + ); + }); map.insert(initial_default_token, fp_evm::GenesisAccount { nonce: Default::default(), balance: Default::default(), @@ -179,7 +177,7 @@ pub fn base_genesis( map.insert( main_account, fp_evm::GenesisAccount { - nonce: U256::from(1), + nonce: U256::from(2), balance: Default::default(), storage: Default::default(), code: Default::default(),