Skip to content

Commit

Permalink
Solve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Dec 12, 2024
1 parent f2d7941 commit 0d3019c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 1 addition & 4 deletions core/lib/protobuf_config/src/da_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
10 changes: 8 additions & 2 deletions core/node/da_clients/src/eigen/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ impl<T: GetBlobData> RawEigenClient<T> {
| 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)),
}
}

Expand Down Expand Up @@ -163,7 +166,10 @@ impl<T: GetBlobData> RawEigenClient<T> {
| 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)),
}
}

Expand Down

0 comments on commit 0d3019c

Please sign in to comment.