Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Oct 31, 2023
1 parent 0ba7a6f commit 2978ff8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
6 changes: 2 additions & 4 deletions tools/query/src/account_queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,5 @@ pub async fn get_val_config(
client: &Client,
account: AccountAddress,
) -> anyhow::Result<ValidatorConfig> {
client
.get_move_resource::<ValidatorConfig>(account)
.await
}
client.get_move_resource::<ValidatorConfig>(account).await
}
24 changes: 14 additions & 10 deletions tools/txs/src/txs_cli_vals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ impl ValidatorTxs {
.validator_host
.as_network_address(oc.validator_network_public_key)?;

let fullnode_host = oc.full_node_host.context("cannot find fullnode host")?;
let vfn_fullnode_protocol = fullnode_host.as_network_address(
oc.full_node_network_public_key
.context("cannot find fullnode network public key")?,
)?;
let fullnode_host = oc
.full_node_host
.context("cannot find fullnode host in operator config file")?;
let vfn_fullnode_protocol =
fullnode_host.as_network_address(oc.full_node_network_public_key.context(
"cannot find fullnode network public key in operator config file",
)?)?;

ValidatorUniverseRegisterValidator {
consensus_pubkey: oc.consensus_public_key.to_bytes().to_vec(),
Expand All @@ -134,11 +136,13 @@ impl ValidatorTxs {
.validator_host
.as_network_address(oc.validator_network_public_key)?;

let fullnode_host = oc.full_node_host.context("cannot find fullnode host")?;
let vfn_fullnode_protocol = fullnode_host.as_network_address(
oc.full_node_network_public_key
.context("cannot find fullnode network public key")?,
)?;
let fullnode_host = oc
.full_node_host
.context("cannot find fullnode host in operator config file")?;
let vfn_fullnode_protocol = fullnode_host
.as_network_address(oc.full_node_network_public_key.context(
"cannot find fullnode network public key operator config file",
)?)?;

StakeUpdateNetworkAndFullnodeAddresses {
validator_address: oc.operator_account_address.into(),
Expand Down

0 comments on commit 2978ff8

Please sign in to comment.