@@ -220,9 +220,9 @@ impl MithrilUnstableClient {
220
220
}
221
221
}
222
222
223
- /// Call the client for the list of available Cardano transactions sets
223
+ /// Call the client for the list of available Cardano transactions commitments
224
224
#[ wasm_bindgen]
225
- pub async fn list_cardano_transaction_sets ( & self ) -> WasmResult {
225
+ pub async fn list_cardano_transactions_commitments ( & self ) -> WasmResult {
226
226
let result = self
227
227
. client
228
228
. cardano_transaction_proof ( )
@@ -233,9 +233,9 @@ impl MithrilUnstableClient {
233
233
Ok ( serde_wasm_bindgen:: to_value ( & result) ?)
234
234
}
235
235
236
- /// Call the client to get a Cardano transactions set from a hash
236
+ /// Call the client to get a Cardano transactions commitment from a hash
237
237
#[ wasm_bindgen]
238
- pub async fn get_cardano_transaction_set ( & self , hash : & str ) -> WasmResult {
238
+ pub async fn get_cardano_transactions_commitment ( & self , hash : & str ) -> WasmResult {
239
239
let result = self
240
240
. client
241
241
. cardano_transaction_proof ( )
@@ -493,12 +493,12 @@ mod tests {
493
493
}
494
494
495
495
#[ wasm_bindgen_test]
496
- async fn list_cardano_transaction_sets_should_return_value_convertible_in_rust_type ( ) {
496
+ async fn list_cardano_transactions_commitments_should_return_value_convertible_in_rust_type ( ) {
497
497
let cardano_tx_sets_js_value = get_mithril_client ( )
498
498
. unstable
499
- . list_cardano_transaction_sets ( )
499
+ . list_cardano_transactions_commitments ( )
500
500
. await
501
- . expect ( "list_cardano_transaction_sets should not fail" ) ;
501
+ . expect ( "list_cardano_transactions_commitments should not fail" ) ;
502
502
let cardano_tx_sets = serde_wasm_bindgen:: from_value :: < Vec < CardanoTransactionCommitment > > (
503
503
cardano_tx_sets_js_value,
504
504
)
@@ -512,12 +512,12 @@ mod tests {
512
512
}
513
513
514
514
#[ wasm_bindgen_test]
515
- async fn get_cardano_transaction_set_should_return_value_convertible_in_rust_type ( ) {
515
+ async fn get_cardano_transactions_commitment_should_return_value_convertible_in_rust_type ( ) {
516
516
let cardano_tx_set_js_value = get_mithril_client ( )
517
517
. unstable
518
- . get_cardano_transaction_set ( test_data:: ctx_commitment_hashes ( ) [ 0 ] )
518
+ . get_cardano_transactions_commitment ( test_data:: ctx_commitment_hashes ( ) [ 0 ] )
519
519
. await
520
- . expect ( "get_cardano_transaction_set should not fail" ) ;
520
+ . expect ( "get_cardano_transactions_commitment should not fail" ) ;
521
521
let cardano_tx_set =
522
522
serde_wasm_bindgen:: from_value :: < CardanoTransactionCommitment > ( cardano_tx_set_js_value)
523
523
. expect ( "conversion should not fail" ) ;
@@ -526,12 +526,12 @@ mod tests {
526
526
}
527
527
528
528
#[ wasm_bindgen_test]
529
- async fn get_cardano_transaction_set_should_fail_with_unknown_digest ( ) {
529
+ async fn get_cardano_transactions_commitment_should_fail_with_unknown_digest ( ) {
530
530
get_mithril_client ( )
531
531
. unstable
532
- . get_cardano_transaction_set ( "whatever" )
532
+ . get_cardano_transactions_commitment ( "whatever" )
533
533
. await
534
- . expect_err ( "get_cardano_transaction_set should fail" ) ;
534
+ . expect_err ( "get_cardano_transactions_commitment should fail" ) ;
535
535
}
536
536
537
537
#[ wasm_bindgen_test]
0 commit comments