diff --git a/rollup/node/src/chain_spec.rs b/rollup/node/src/chain_spec.rs index d779a431c..a6c3660fc 100644 --- a/rollup/node/src/chain_spec.rs +++ b/rollup/node/src/chain_spec.rs @@ -53,7 +53,11 @@ pub fn rollup_session_keys(aura: AuraId, grandpa: GrandpaId) -> rollup_runtime:: rollup_runtime::SessionKeys { aura, grandpa } } -pub fn rollup_local_config(initial_collators_as_sequencers: bool, eth_chain_id: u64, decode_url: Option) -> ChainSpec { +pub fn rollup_local_config( + initial_collators_as_sequencers: bool, + eth_chain_id: u64, + decode_url: Option, +) -> ChainSpec { // Give your base currency a unit name and decimal places let mut properties = sc_chain_spec::Properties::new(); properties.insert("tokenSymbol".into(), "GASP".into()); @@ -61,9 +65,9 @@ pub fn rollup_local_config(initial_collators_as_sequencers: bool, eth_chain_id: properties.insert("ss58Format".into(), 42u32.into()); properties.insert("isEthereum".into(), true.into()); - let decode_url = decode_url.unwrap_or( - String::from("https://polkadot.js.org/apps/?rpc=ws%253A%252F%252F127.0.0.1%253A9944#/extrinsics/decode/") - ); + let decode_url = decode_url.unwrap_or(String::from( + "https://polkadot.js.org/apps/?rpc=ws%253A%252F%252F127.0.0.1%253A9944#/extrinsics/decode/", + )); ChainSpec::from_genesis( // Name @@ -335,7 +339,7 @@ fn rollup_genesis( name: "Gasp".to_string(), version: "0.0.1".to_string(), chain_id, - decode_url: decode_url, + decode_url, _phantom: Default::default(), }, } diff --git a/rollup/runtime/src/lib.rs b/rollup/runtime/src/lib.rs index 3deb69831..23095060f 100644 --- a/rollup/runtime/src/lib.rs +++ b/rollup/runtime/src/lib.rs @@ -429,7 +429,7 @@ use sp_std::{fmt::Write, prelude::*}; impl ExtendedCall for RuntimeCall { fn context(&self) -> Option { let mut call = String::new(); - if let Some(url) = pallet_metamask_signature::Pallet::::get_decode_url(){ + if let Some(url) = pallet_metamask_signature::Pallet::::get_decode_url() { let _ = write!(&mut call, "{}", url); } let _ = write!(&mut call, "{}", array_bytes::bytes2hex("0x", self.encode()));