Skip to content

Commit 7345285

Browse files
authored
Merge pull request #147 from 0xMiden/keinberger/v12-tutorials-cleanup
Final fixes for v12 version of web client tutorials
2 parents cf68ba8 + 674b2d0 commit 7345285

File tree

6 files changed

+10
-16
lines changed

6 files changed

+10
-16
lines changed

docs/src/web-client/counter_contract_tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ end
356356

357357
### Authentication Component
358358

359-
**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.
359+
**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.
360360

361-
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.
361+
This `NoAuth` component allows any user to interact with the smart contract without requiring signature verification.
362362

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

docs/src/web-client/create_deploy_tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export async function createMintConsume(): Promise<void> {
9494
);
9595

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

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

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

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

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

253253
// 1. Sync with the latest blockchain state

docs/src/web-client/creating_multiple_notes_tutorial.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ export async function multiSendWithDelegatedProver(): Promise<void> {
138138
OutputNote,
139139
} = await import('@demox-labs/miden-sdk');
140140

141-
const client = await WebClient.createClient(
142-
'https://rpc.testnet.miden.io:443',
143-
);
141+
const client = await WebClient.createClient('https://rpc.testnet.miden.io');
144142
const prover = TransactionProver.newRemoteProver(
145143
'https://tx-prover.testnet.miden.io',
146144
);
@@ -281,9 +279,7 @@ export async function multiSendWithDelegatedProver(): Promise<void> {
281279
OutputNote,
282280
} = await import('@demox-labs/miden-sdk');
283281

284-
const client = await WebClient.createClient(
285-
'https://rpc.testnet.miden.io:443',
286-
);
282+
const client = await WebClient.createClient('https://rpc.testnet.miden.io');
287283
const prover = TransactionProver.newRemoteProver(
288284
'https://tx-prover.testnet.miden.io',
289285
);

docs/src/web-client/foreign_procedure_invocation_tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ This script:
523523

524524
### Getting Procedure Hashes
525525

526-
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:
526+
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:
527527

528528
```ts
529529
let getCountProcHash = counterContractComponent.getProcedureHash('get_count');

web-client/lib/createMintConsume.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function createMintConsume(): Promise<void> {
1010
'@demox-labs/miden-sdk'
1111
);
1212

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

1616
// 1. Sync with the latest blockchain state

web-client/lib/multiSendWithDelegatedProver.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ export async function multiSendWithDelegatedProver(): Promise<void> {
2323
OutputNote,
2424
} = await import('@demox-labs/miden-sdk');
2525

26-
const client = await WebClient.createClient(
27-
'https://rpc.testnet.miden.io:443',
28-
);
26+
const client = await WebClient.createClient('https://rpc.testnet.miden.io');
2927
const prover = TransactionProver.newRemoteProver(
3028
'https://tx-prover.testnet.miden.io',
3129
);

0 commit comments

Comments
 (0)