Skip to content

Commit

Permalink
fix: clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Supremesource committed Dec 5, 2024
1 parent bac6b1b commit 390f019
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pallets/subnet_emission/src/decryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ impl<T: Config> Pallet<T> {
let (_, hanging_subnets) = Self::get_valid_subnets(None);

for subnet_id in hanging_subnets.clone() {
let _ = Self::cleanup_subnet_wc_state(subnet_id, true);
Self::cleanup_subnet_wc_state(subnet_id, true);
Self::cleanup_weight_encryption_data(subnet_id);
}

Expand Down
6 changes: 3 additions & 3 deletions xtask/src/mainnet_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ fn sudo(genesis: &mut Value, sudo: Option<&String>) {

let sudo = sudo
.map(|sudo| {
sp_core::ed25519::Public::from_ss58check(&sudo)
sp_core::ed25519::Public::from_ss58check(sudo)
.expect("invalid SS58 sudo address")
.0
})
.unwrap_or(KEYS[0]);

genesis[&key] = Value::String(format!("0x{}", hex::encode(&sudo)));
genesis[&key] = Value::String(format!("0x{}", hex::encode(sudo)));
}

const KEYS: &[[u8; 32]] = &[
Expand Down Expand Up @@ -141,7 +141,7 @@ fn key_name(pallet: &[u8], key: &[u8]) -> String {

type OpaqueBlock = Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>;

const IS_NEW_LOGIC: u128 = 0x80000000_00000000_00000000_00000000u128;
// const IS_NEW_LOGIC: u128 = 0x80000000_00000000_00000000_00000000u128;

async fn create_mainnet_spec() -> Box<dyn ChainSpec> {
let mut chain_spec = sc_service::GenericChainSpec::<sc_service::NoExtension>::from_json_bytes(
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub(super) fn run(mut r: flags::Run) {
(chain_path, true)
}
flags::RunCmd::Replica(replica) => {
(crate::mainnet_spec::mainnet_spec(&replica, &path), false)
(crate::mainnet_spec::mainnet_spec(replica, &path), false)
}
};

Expand Down

0 comments on commit 390f019

Please sign in to comment.