Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/rust-client/delegated_proving_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ rand_chacha = "0.9.0"
Similarly to previous tutorials, we must instantiate the client.
We construct a `RemoteTransactionProver` that points to our delegated-proving service running at https://tx-prover.testnet.miden.io.

```rust
```rust,no_run
use miden_client::auth::AuthSecretKey;
use std::sync::Arc;

Expand Down
12 changes: 6 additions & 6 deletions docs/src/rust-client/foreign_procedure_invocation_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ end

### Step 3: Set up your `src/main.rs` file:

```rust,no_run
```rust
use rand::RngCore;
use std::{fs, path::Path, sync::Arc, time::Duration};
use tokio::time::sleep;
Expand Down Expand Up @@ -243,7 +243,7 @@ contract id: "mtst1qp3ca3adt34euqqqqwt488x34qnnd495"

Add this snippet to the end of your file in the `main()` function that we created in the previous step:

```rust,no_run
```rust
# use rand::RngCore;
# use std::{fs, path::Path, sync::Arc, time::Duration};
# use tokio::time::sleep;
Expand Down Expand Up @@ -399,7 +399,7 @@ This step uses the logic we explained in the [Public Account Interaction Tutoria

Add this snippet to the end of your file in the `main()` function:

```rust,no_run
```rust
# use rand::RngCore;
# use std::{fs, path::Path, sync::Arc, time::Duration};
# use tokio::time::sleep;
Expand Down Expand Up @@ -631,7 +631,7 @@ Add this snippet to the end of your file in the `main()` function:
);

// Submit transaction to the network
let _ = client.submit_transaction(tx_result).await;
let _ = client.submit_transaction(tx_result).await?;
client.sync_state().await.unwrap();

sleep(Duration::from_secs(5)).await;
Expand Down Expand Up @@ -786,7 +786,7 @@ async fn main() -> Result<(), ClientError> {

// Define the Counter Contract account id from counter contract deploy
let (_, counter_contract_address) =
Address::from_bech32("mdev1qqarryhdvl3tuqp9k8gcp7r53ecqqeqtky8").unwrap();
Address::from_bech32("mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy").unwrap();
let counter_contract_id = match counter_contract_address {
Address::AccountId(account_id_address) => account_id_address.id(),
_ => panic!("Expected AccountId address"),
Expand Down Expand Up @@ -898,7 +898,7 @@ async fn main() -> Result<(), ClientError> {
);

// Submit transaction to the network
let _ = client.submit_transaction(tx_result).await;
let _ = client.submit_transaction(tx_result).await?;
client.sync_state().await.unwrap();

sleep(Duration::from_secs(5)).await;
Expand Down
Loading