Skip to content

Commit b9666aa

Browse files
author
Clément Turmel
committed
refactor(client-lib): adapt mod.rs documentation with new api calls
1 parent c06a298 commit b9666aa

File tree

1 file changed

+13
-5
lines changed
  • mithril-client/src/cardano_database_client

1 file changed

+13
-5
lines changed

mithril-client/src/cardano_database_client/mod.rs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,21 @@
120120
//! .await?;
121121
//!
122122
//! let allow_missing_immutables_files = false;
123+
//! let merkle_proof = client
124+
//! .cardano_database_v2()
125+
//! .verify_cardano_database(
126+
//! &certificate,
127+
//! &cardano_database_snapshot,
128+
//! &immutable_file_range,
129+
//! allow_missing_immutables_files,
130+
//! &target_directory,
131+
//! &verified_digests
132+
//! ).await?;
133+
//!
134+
//!
123135
//! let message = MessageBuilder::new().compute_cardano_database_message(
124136
//! &certificate,
125-
//! &cardano_database_snapshot,
126-
//! &immutable_file_range,
127-
//! allow_missing_immutables_files,
128-
//! &target_directory,
129-
//! &verified_digests,
137+
//! &merkle_proof,
130138
//! ).await?;
131139
//! #
132140
//! # Ok(())

0 commit comments

Comments
 (0)