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
4 changes: 2 additions & 2 deletions docs/src/web-client/counter_contract_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ end

### Authentication Component

**Important**: Starting with Miden Client 0.10.0, all accounts must have an authentication component. For smart contracts that don't require authentication (like our counter contract), we use a `NoAuth` component.
**Important**: All accounts must have an authentication component. For smart contracts that do not require authentication (like our counter contract), we use a `NoAuth` component.

This `NoAuth` component allows any user to interact with the smart contract without requiring signature verification.ivate key of the account can execute transactions that result in a state change.
This `NoAuth` component allows any user to interact with the smart contract without requiring signature verification.

**Note**: _Adding the `account::incr_nonce` to a state changing procedure allows any user to call the procedure._

Expand Down
6 changes: 3 additions & 3 deletions docs/src/web-client/create_deploy_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function createMintConsume(): Promise<void> {
);

// Connect to Miden testnet RPC endpoint
const nodeEndpoint = 'https://rpc.testnet.miden.io:443';
const nodeEndpoint = 'https://rpc.testnet.miden.io';
const client = await WebClient.createClient(nodeEndpoint);

// 1. Sync with the latest blockchain state
Expand Down Expand Up @@ -170,7 +170,7 @@ export async function createMintConsume(): Promise<void> {
"@demox-labs/miden-sdk"
);

const nodeEndpoint = 'https://rpc.testnet.miden.io:443';
const nodeEndpoint = 'https://rpc.testnet.miden.io';
const client = await WebClient.createClient(nodeEndpoint);

// 1. Sync with the latest blockchain state
Expand Down Expand Up @@ -247,7 +247,7 @@ export async function createMintConsume(): Promise<void> {
'@demox-labs/miden-sdk'
);

const nodeEndpoint = 'https://rpc.testnet.miden.io:443';
const nodeEndpoint = 'https://rpc.testnet.miden.io';
const client = await WebClient.createClient(nodeEndpoint);

// 1. Sync with the latest blockchain state
Expand Down
8 changes: 2 additions & 6 deletions docs/src/web-client/creating_multiple_notes_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ export async function multiSendWithDelegatedProver(): Promise<void> {
OutputNote,
} = await import('@demox-labs/miden-sdk');

const client = await WebClient.createClient(
'https://rpc.testnet.miden.io:443',
);
const client = await WebClient.createClient('https://rpc.testnet.miden.io');
const prover = TransactionProver.newRemoteProver(
'https://tx-prover.testnet.miden.io',
);
Expand Down Expand Up @@ -281,9 +279,7 @@ export async function multiSendWithDelegatedProver(): Promise<void> {
OutputNote,
} = await import('@demox-labs/miden-sdk');

const client = await WebClient.createClient(
'https://rpc.testnet.miden.io:443',
);
const client = await WebClient.createClient('https://rpc.testnet.miden.io');
const prover = TransactionProver.newRemoteProver(
'https://tx-prover.testnet.miden.io',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ This script:

### Getting Procedure Hashes

In the WebClient, we get the procedure hash using the [`getProcedureHash`](https://github.com/0xMiden/miden-tutorials/blob/b281dea26ab0946e1c0aa68d4ea30e15765d456b/web-client/lib/foreignProcedureInvocation.ts#L178) method:
In the WebClient, we get the procedure hash using the [`getProcedureHash`](https://github.com/0xMiden/miden-tutorials/blob/7bfa1996979cbb221b8cab455596093535787784/web-client/lib/foreignProcedureInvocation.ts#L176) method:

```ts
let getCountProcHash = counterContractComponent.getProcedureHash('get_count');
Expand Down
2 changes: 1 addition & 1 deletion web-client/lib/createMintConsume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function createMintConsume(): Promise<void> {
'@demox-labs/miden-sdk'
);

const nodeEndpoint = 'https://rpc.testnet.miden.io:443';
const nodeEndpoint = 'https://rpc.testnet.miden.io';
const client = await WebClient.createClient(nodeEndpoint);

// 1. Sync with the latest blockchain state
Expand Down
4 changes: 1 addition & 3 deletions web-client/lib/multiSendWithDelegatedProver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ export async function multiSendWithDelegatedProver(): Promise<void> {
OutputNote,
} = await import('@demox-labs/miden-sdk');

const client = await WebClient.createClient(
'https://rpc.testnet.miden.io:443',
);
const client = await WebClient.createClient('https://rpc.testnet.miden.io');
const prover = TransactionProver.newRemoteProver(
'https://tx-prover.testnet.miden.io',
);
Expand Down