Skip to content

Commit

Permalink
Add inclusion data
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Nov 4, 2024
1 parent 645f15e commit 3bd5812
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/node/da_clients/src/eigen/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,14 @@ mod tests {
let result = client.dispatch_blob(0, data.clone()).await.unwrap();
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

0 comments on commit 3bd5812

Please sign in to comment.