Skip to content

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Nov 4, 2024
1 parent 7864534 commit edafcff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 9 additions & 2 deletions core/node/da_clients/src/eigen/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use zksync_da_client::{
DataAvailabilityClient,
};

use super::{memstore::MemStore, sdk::RawEigenClient, Disperser,blob_info::BlobInfo};
use super::{blob_info::BlobInfo, memstore::MemStore, sdk::RawEigenClient, Disperser};
use crate::utils::to_non_retriable_da_error;

#[derive(Debug, Clone)]
Expand Down Expand Up @@ -191,7 +191,14 @@ mod tests {

let blob_info: BlobInfo =
rlp::decode(&hex::decode(result.blob_id.clone()).unwrap()).unwrap();
// TODO: once get inclusion data is added, check it
let expected_inclusion_data = blob_info.blob_verification_proof.inclusion_proof;
let actual_inclusion_data = client
.get_inclusion_data(&result.blob_id)
.await
.unwrap()
.unwrap()
.data;
assert_eq!(expected_inclusion_data, actual_inclusion_data);

let retrieved_data = client.get_blob_data(&result.blob_id).await.unwrap();
assert_eq!(retrieved_data.unwrap(), data);
Expand Down
5 changes: 1 addition & 4 deletions core/node/da_clients/src/eigen/memstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ use tokio::time::interval;
use zksync_config::configs::da_client::eigen::MemStoreConfig;
use zksync_da_client::types::{DAError, DispatchResponse, InclusionData};

use super::{
blob_info::{self, BlobInfo},
client::to_retriable_error,
};
use super::blob_info::{self, BlobInfo};

#[derive(Debug, PartialEq)]
pub enum MemStoreError {
Expand Down

0 comments on commit edafcff

Please sign in to comment.