Skip to content

Commit

Permalink
chore: address more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
charmful0x committed Nov 18, 2024
1 parent 2428c93 commit eef7971
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/blob-explorers/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pub struct BlobInfo {
/// The versioned hash of the blob
pub versioned_hash: B256,
/// Storage info
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub data_storage_references: Vec<DataStorageReference>,
/// The blob data
#[serde(deserialize_with = "deserialize_blob")]
Expand All @@ -110,13 +111,11 @@ pub struct BlobInfo {

/// Where the blob data is stored
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase", default)]
#[serde(rename_all = "camelCase")]
pub struct DataStorageReference {
/// The storage provider
#[serde(skip_serializing_if = "Option::is_none")]
pub blob_storage: Option<String>,
/// data location
#[serde(skip_serializing_if = "Option::is_none")]
pub data_reference: Option<String>,
}

Expand Down

0 comments on commit eef7971

Please sign in to comment.