Skip to content

Commit 3cbdfd0

Browse files
fix: bring back runnable fpi (#128)
1 parent 43538a1 commit 3cbdfd0

File tree

3 files changed

+522
-379
lines changed

3 files changed

+522
-379
lines changed

docs/src/rust-client/delegated_proving_tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ rand_chacha = "0.9.0"
5757
Similarly to previous tutorials, we must instantiate the client.
5858
We construct a `RemoteTransactionProver` that points to our delegated-proving service running at https://tx-prover.testnet.miden.io.
5959

60-
```rust
60+
```rust,no_run
6161
use miden_client::auth::AuthSecretKey;
6262
use std::sync::Arc;
6363

docs/src/rust-client/foreign_procedure_invocation_tutorial.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ end
105105

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

108-
```rust,no_run
108+
```rust
109109
use rand::RngCore;
110110
use std::{fs, path::Path, sync::Arc, time::Duration};
111111
use tokio::time::sleep;
@@ -243,7 +243,7 @@ contract id: "mtst1qp3ca3adt34euqqqqwt488x34qnnd495"
243243

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

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

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

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

633633
// Submit transaction to the network
634-
let _ = client.submit_transaction(tx_result).await;
634+
let _ = client.submit_transaction(tx_result).await?;
635635
client.sync_state().await.unwrap();
636636

637637
sleep(Duration::from_secs(5)).await;
@@ -786,7 +786,7 @@ async fn main() -> Result<(), ClientError> {
786786
787787
// Define the Counter Contract account id from counter contract deploy
788788
let (_, counter_contract_address) =
789-
Address::from_bech32("mdev1qqarryhdvl3tuqp9k8gcp7r53ecqqeqtky8").unwrap();
789+
Address::from_bech32("mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy").unwrap();
790790
let counter_contract_id = match counter_contract_address {
791791
Address::AccountId(account_id_address) => account_id_address.id(),
792792
_ => panic!("Expected AccountId address"),
@@ -898,7 +898,7 @@ async fn main() -> Result<(), ClientError> {
898898
);
899899
900900
// Submit transaction to the network
901-
let _ = client.submit_transaction(tx_result).await;
901+
let _ = client.submit_transaction(tx_result).await?;
902902
client.sync_state().await.unwrap();
903903
904904
sleep(Duration::from_secs(5)).await;

0 commit comments

Comments
 (0)