Skip to content

Commit

Permalink
Merge pull request #589 from chainbound/fix/cli/parse-errors
Browse files Browse the repository at this point in the history
fix(cli): remove default --chain in bolt delegate command
  • Loading branch information
merklefruit authored Dec 17, 2024
2 parents 0fcebe3 + 04f0b4b commit 6d0f407
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bolt-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub struct DelegateCommand {
pub out: String,

/// The chain for which the delegation message is intended.
#[clap(long, env = "CHAIN", default_value = "mainnet")]
#[clap(long, env = "CHAIN")]
pub chain: Chain,

/// The action to perform. The tool can be used to generate
Expand Down
1 change: 1 addition & 0 deletions bolt-sidecar/src/client/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ impl BuilderApi for ConstraintsClient {
if self.delegations.is_empty() {
return Ok(());
}

let validator_pubkeys =
registrations.iter().map(|r| &r.message.public_key).collect::<HashSet<_>>();

Expand Down
3 changes: 1 addition & 2 deletions bolt-sidecar/src/client/execution.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use std::ops::{Deref, DerefMut};

use alloy::rpc::client::RpcClient;
use alloy::{
eips::BlockNumberOrTag,
primitives::{Address, Bytes, TxHash, B256, U256, U64},
providers::{ProviderBuilder, RootProvider},
rpc::{
client::{BatchRequest, ClientBuilder},
client::{BatchRequest, ClientBuilder, RpcClient},
types::{Block, FeeHistory, TransactionReceipt},
},
transports::{http::Http, TransportErrorKind, TransportResult},
Expand Down
4 changes: 2 additions & 2 deletions bolt-sidecar/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,11 @@ impl<C: StateFetcher, ECDSA: SignerECDSA> SidecarDriver<C, ECDSA> {
};

let constraints = Arc::new(template.signed_constraints_list.clone());
let constraints_client = self.constraints_client.clone();
let constraints_client = Arc::new(self.constraints_client.clone());

// Submit constraints to the constraints service with an exponential retry mechanism.
tokio::spawn(retry_with_backoff(10, move || {
let constraints_client = constraints_client.clone();
let constraints_client = Arc::clone(&constraints_client);
let constraints = Arc::clone(&constraints);
async move {
match constraints_client.submit_constraints(constraints.as_ref()).await {
Expand Down

0 comments on commit 6d0f407

Please sign in to comment.