diff --git a/core/lib/protobuf_config/src/da_client.rs b/core/lib/protobuf_config/src/da_client.rs index 887f0a006743..84e94aeae1a2 100644 --- a/core/lib/protobuf_config/src/da_client.rs +++ b/core/lib/protobuf_config/src/da_client.rs @@ -63,10 +63,7 @@ impl ProtoRepr for proto::DataAvailabilityClient { &conf.settlement_layer_confirmation_depth, ) .context("settlement_layer_confirmation_depth")?, - eigenda_eth_rpc: match required(&conf.eigenda_eth_rpc) { - Ok(rpc) => Some(rpc.clone()), - Err(_) => None, - }, + eigenda_eth_rpc: required(&conf.eigenda_eth_rpc).ok().cloned(), eigenda_svc_manager_address: required(&conf.eigenda_svc_manager_address) .context("eigenda_svc_manager_address")? .clone(), diff --git a/core/node/da_clients/src/eigen/sdk.rs b/core/node/da_clients/src/eigen/sdk.rs index 72b3696315f5..362c52ffc82a 100644 --- a/core/node/da_clients/src/eigen/sdk.rs +++ b/core/node/da_clients/src/eigen/sdk.rs @@ -118,7 +118,10 @@ impl RawEigenClient { | disperser::BlobStatus::InsufficientSignatures | disperser::BlobStatus::Unknown => Err(anyhow::anyhow!("Blob dispatch failed")), - _ => Ok(hex::encode(disperse_reply.request_id)), + disperser::BlobStatus::Dispersing + | disperser::BlobStatus::Processing + | disperser::BlobStatus::Finalized + | disperser::BlobStatus::Confirmed => Ok(hex::encode(disperse_reply.request_id)), } } @@ -163,7 +166,10 @@ impl RawEigenClient { | disperser::BlobStatus::InsufficientSignatures | disperser::BlobStatus::Unknown => Err(anyhow::anyhow!("Blob dispatch failed")), - _ => Ok(hex::encode(disperse_reply.request_id)), + disperser::BlobStatus::Dispersing + | disperser::BlobStatus::Processing + | disperser::BlobStatus::Finalized + | disperser::BlobStatus::Confirmed => Ok(hex::encode(disperse_reply.request_id)), } }