Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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/counter_contract_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ println!(

The final `src/main.rs` file should look like this:

```rust
```rust,no_run
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@partylikeits1983 why did this change to no_run? It sort of defeats the purpose of #89

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe because FPI is not working with the current client release

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but many of the tests that are now no_run are not using FPI

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use miden_lib::account::auth::NoAuth;
use rand::RngCore;
use std::{fs, path::Path, sync::Arc};
Expand Down
4 changes: 2 additions & 2 deletions docs/src/rust-client/create_deploy_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Before interacting with the Miden network, we must instantiate the client. In th

Copy and paste the following code into your `src/main.rs` file.

```rust
```rust,no_run
use miden_lib::account::auth::AuthRpoFalcon512;
use rand::RngCore;
use std::sync::Arc;
Expand Down Expand Up @@ -358,7 +358,7 @@ _When tokens are minted from this faucet, each token batch is represented as a "

Your updated `main()` function in `src/main.rs` should look like this:

```rust
```rust,no_run
use rand::RngCore;
use std::sync::Arc;
use tokio::time::Duration;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/rust-client/custom_note_how_to.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ With the note created, Bob can now consume it—but only if he provides the corr

The following Rust code demonstrates how to implement the steps outlined above using the Miden client library:

```rust
```rust,no_run
use miden_lib::account::auth::AuthRpoFalcon512;
use rand::{rngs::StdRng, RngCore};
use std::{fs, path::Path, sync::Arc};
Expand Down
6 changes: 3 additions & 3 deletions docs/src/rust-client/foreign_procedure_invocation_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ println!("\n[STEP 2] Building counter contract from public state");

// Define the Counter Contract account id from counter contract deploy
let (_, counter_contract_address) =
Address::from_bech32("mtst1qzusgpvww6lz7qzguncjax7jefcqqthgja7").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 @@ -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
```rust,no_run
# use rand::RngCore;
# use std::{fs, path::Path, sync::Arc, time::Duration};
# use tokio::time::sleep;
Expand Down Expand Up @@ -520,7 +520,7 @@ Add this snippet to the end of your file in the `main()` function:
#
# // 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
2 changes: 1 addition & 1 deletion docs/src/rust-client/mint_consume_create_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ Note: _In a production environment do not use `AccountId::new_dummy()`, this is

Your `src/main.rs` function should now look like this:

```rust
```rust,no_run
use rand::RngCore;
use std::sync::Arc;
use tokio::time::Duration;
Expand Down
8 changes: 4 additions & 4 deletions docs/src/rust-client/public_account_interaction_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ println!("\n[STEP 1] Reading data from public state");

// Define the Counter Contract account id from counter contract deploy
let (_network_id, address) =
Address::from_bech32("mtst1qzusgpvww6lz7qzguncjax7jefcqqthgja7").unwrap();
Address::from_bech32("mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy").unwrap();
let counter_contract_id = match address {
Address::AccountId(account_id_address) => account_id_address.id(),
_ => panic!("Expected AccountId address"),
Expand Down Expand Up @@ -347,7 +347,7 @@ Add the following code snippet to the end of your `src/main.rs` function:

# // Define the Counter Contract account id from counter contract deploy
# let (_network_id, address) =
# Address::from_bech32("mtst1qzusgpvww6lz7qzguncjax7jefcqqthgja7").unwrap();
# Address::from_bech32("mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy").unwrap();
# let counter_contract_id = match address {
# Address::AccountId(account_id_address) => account_id_address.id(),
# _ => panic!("Expected AccountId address"),
Expand Down Expand Up @@ -435,7 +435,7 @@ println!(

The final `src/main.rs` file should look like this:

```rust
```rust,no_run
use std::{fs, path::Path, sync::Arc};

use miden_assembly::{
Expand Down Expand Up @@ -492,7 +492,7 @@ async fn main() -> Result<(), ClientError> {

// Define the Counter Contract account id from counter contract deploy
let (_network_id, address) =
Address::from_bech32("mdev1qqarryhdvl3tuqp9k8gcp7r53ecqqeqtky8").unwrap();
Address::from_bech32("mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy").unwrap();
let counter_contract_id = match address {
Address::AccountId(account_id_address) => account_id_address.id(),
_ => panic!("Expected AccountId address"),
Expand Down
2 changes: 1 addition & 1 deletion docs/src/web-client/counter_contract_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export async function incrementCounterContract(): Promise<void> {

// Counter contract account id on testnet
const counterContractId = AccountId.fromBech32(
"mtst1qzusgpvww6lz7qzguncjax7jefcqqthgja7",
"mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy",
);

// Reading the public state of the counter contract from testnet,
Expand Down
2 changes: 1 addition & 1 deletion rust-client/src/bin/counter_contract_fpi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async fn main() -> Result<(), ClientError> {

// Define the Counter Contract account id from counter contract deploy
let (_, counter_contract_address) =
Address::from_bech32("mtst1qzusgpvww6lz7qzguncjax7jefcqqthgja7").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
2 changes: 1 addition & 1 deletion rust-client/src/bin/counter_contract_increment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async fn main() -> Result<(), ClientError> {

// Define the Counter Contract account id from counter contract deploy
let (_network_id, address) =
Address::from_bech32("mtst1qzusgpvww6lz7qzguncjax7jefcqqthgja7").unwrap();
Address::from_bech32("mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy").unwrap();
let counter_contract_id = match address {
Address::AccountId(account_id_address) => account_id_address.id(),
_ => panic!("Expected AccountId address"),
Expand Down
2 changes: 1 addition & 1 deletion web-client/lib/incrementCounterContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function incrementCounterContract(): Promise<void> {

// Counter contract account id on testnet
const counterContractId = AccountId.fromBech32(
"mtst1qzusgpvww6lz7qzguncjax7jefcqqthgja7",
"mtst1qrhk9zc2au2vxqzaynaz5ddhs4cqqghmajy",
);

// Reading the public state of the counter contract from testnet,
Expand Down