Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania authored and Mr-Leshiy committed Oct 12, 2021
1 parent 8a9e2e0 commit 600ed04
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 22 deletions.
3 changes: 0 additions & 3 deletions jormungandr/src/explorer/mod.rs
Expand Up @@ -73,7 +73,6 @@ pub struct BlockchainConfig {
/// Used to construct `Address` from `AccountIndentifier` when processing transaction
/// inputs
discrimination: Discrimination,
consensus_version: ConsensusVersion,
fees: LinearFee,
epoch_stability_depth: u32,
}
Expand Down Expand Up @@ -891,8 +890,6 @@ impl BlockchainConfig {

BlockchainConfig {
discrimination: discrimination.expect("discrimination not found in initial params"),
consensus_version: consensus_version
.expect("consensus version not found in initial params"),
fees: fees.expect("fees not found in initial params"),
epoch_stability_depth: epoch_stability_depth
.expect("epoch stability depth not found in initial params"),
Expand Down
Expand Up @@ -31,7 +31,7 @@ impl ExternalWalletTemplate {
&self.address
}

pub fn alias(&self) -> &str {
&self.alias
pub fn alias(&self) -> WalletAlias {
self.alias.clone()
}
}
7 changes: 0 additions & 7 deletions testing/jormungandr-testing-utils/src/wallet/delegation.rs
Expand Up @@ -15,12 +15,6 @@ pub type SpendingKey = SigningKey<chain_crypto::Ed25519Extended>;
/// wallet for an delegation
#[derive(Debug, Clone)]
pub struct Wallet {
/// this is the root seed of the wallet, everytime we will require
/// the wallet to update we will update the rng, we keep the `seed`
/// so we may reproduce the steps of the wallet
#[allow(dead_code)]
seed: [u8; 32],

rng: ChaChaRng,

/// the spending key
Expand All @@ -41,7 +35,6 @@ impl Wallet {
rng.fill_bytes(&mut seed);
Self {
signing_keys: Vec::new(),
seed,
rng: ChaChaRng::from_seed(seed),
delegations: Vec::new(),
discrimination,
Expand Down
7 changes: 0 additions & 7 deletions testing/jormungandr-testing-utils/src/wallet/utxo.rs
Expand Up @@ -14,12 +14,6 @@ pub type SpendingKey = key::SigningKey<chain_crypto::Ed25519Extended>;
/// wallet for an account
#[derive(Debug, Clone)]
pub struct Wallet {
/// this is the root seed of the wallet, everytime we will require
/// the wallet to update we will update the rng, we keep the `seed`
/// so we may reproduce the steps of the wallet
#[allow(dead_code)]
seed: [u8; 32],

rng: ChaChaRng,

/// the spending key
Expand All @@ -38,7 +32,6 @@ impl Wallet {

let mut wallet = Self {
signing_keys: Vec::new(),
seed,
rng: ChaChaRng::from_seed(seed),
discrimination,
};
Expand Down
3 changes: 0 additions & 3 deletions testing/mjolnir/src/mjolnir_app/bootstrap/mod.rs
Expand Up @@ -27,9 +27,6 @@ pub struct ClientLoadCommand {
#[structopt(short = "a", long = "address")]
pub address: String,

#[structopt(short = "i", long = "ip", default_value = "127.0.0.1")]
pub ip: String,

/// amount of delay [seconds] between sync attempts
#[structopt(short = "p", long = "pace", default_value = "2")]
pub pace: u64,
Expand Down

0 comments on commit 600ed04

Please sign in to comment.