|
105 | 105 |
|
106 | 106 | ### Step 3: Set up your `src/main.rs` file: |
107 | 107 |
|
108 | | -```rust,no_run |
| 108 | +```rust |
109 | 109 | use rand::RngCore; |
110 | 110 | use std::{fs, path::Path, sync::Arc, time::Duration}; |
111 | 111 | use tokio::time::sleep; |
@@ -243,7 +243,7 @@ contract id: "mtst1qp3ca3adt34euqqqqwt488x34qnnd495" |
243 | 243 |
|
244 | 244 | Add this snippet to the end of your file in the `main()` function that we created in the previous step: |
245 | 245 |
|
246 | | -```rust,no_run |
| 246 | +```rust |
247 | 247 | # use rand::RngCore; |
248 | 248 | # use std::{fs, path::Path, sync::Arc, time::Duration}; |
249 | 249 | # use tokio::time::sleep; |
@@ -399,7 +399,7 @@ This step uses the logic we explained in the [Public Account Interaction Tutoria |
399 | 399 |
|
400 | 400 | Add this snippet to the end of your file in the `main()` function: |
401 | 401 |
|
402 | | -```rust,no_run |
| 402 | +```rust |
403 | 403 | # use rand::RngCore; |
404 | 404 | # use std::{fs, path::Path, sync::Arc, time::Duration}; |
405 | 405 | # use tokio::time::sleep; |
@@ -631,7 +631,7 @@ Add this snippet to the end of your file in the `main()` function: |
631 | 631 | ); |
632 | 632 |
|
633 | 633 | // Submit transaction to the network |
634 | | - let _ = client.submit_transaction(tx_result).await; |
| 634 | + let _ = client.submit_transaction(tx_result).await?; |
635 | 635 | client.sync_state().await.unwrap(); |
636 | 636 |
|
637 | 637 | sleep(Duration::from_secs(5)).await; |
@@ -786,7 +786,7 @@ async fn main() -> Result<(), ClientError> { |
786 | 786 |
|
787 | 787 | // Define the Counter Contract account id from counter contract deploy |
788 | 788 | let (_, counter_contract_address) = |
789 | | - Address::from_bech32("mdev1qqarryhdvl3tuqp9k8gcp7r53ecqqeqtky8").unwrap(); |
| 789 | + Address::from_bech32("mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy").unwrap(); |
790 | 790 | let counter_contract_id = match counter_contract_address { |
791 | 791 | Address::AccountId(account_id_address) => account_id_address.id(), |
792 | 792 | _ => panic!("Expected AccountId address"), |
@@ -898,7 +898,7 @@ async fn main() -> Result<(), ClientError> { |
898 | 898 | ); |
899 | 899 |
|
900 | 900 | // Submit transaction to the network |
901 | | - let _ = client.submit_transaction(tx_result).await; |
| 901 | + let _ = client.submit_transaction(tx_result).await?; |
902 | 902 | client.sync_state().await.unwrap(); |
903 | 903 |
|
904 | 904 | sleep(Duration::from_secs(5)).await; |
|
0 commit comments