Skip to content

Commit 55beef4

Browse files
authored
chore: remove duplicate web client page on (#155)
1 parent 9c12034 commit 55beef4

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

.prettierrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"printWidth": 80,
33
"tabWidth": 2,
44
"singleQuote": false,
5-
"trailingComma": "all"
5+
"trailingComma": "all",
6+
"proseWrap": "preserve",
7+
"embeddedLanguageFormatting": "auto",
8+
"endOfLine": "lf"
69
}

docs/src/web-client/.prettierrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"printWidth": 80,
33
"tabWidth": 2,
44
"singleQuote": true,
5-
"trailingComma": "all"
5+
"trailingComma": "all",
6+
"proseWrap": "preserve",
7+
"embeddedLanguageFormatting": "auto",
8+
"endOfLine": "lf"
69
}

docs/src/web-client/create_deploy_tutorial.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ export async function createMintConsume(): Promise<void> {
8989
}
9090

9191
// dynamic import → only in the browser, so WASM is loaded client‑side
92-
const { WebClient, AccountStorageMode, AccountId, NoteType } = await import(
93-
'@demox-labs/miden-sdk'
94-
);
92+
const { WebClient, AccountStorageMode, AccountId, NoteType } =
93+
await import('@demox-labs/miden-sdk');
9594

9695
// Connect to Miden testnet RPC endpoint
9796
const nodeEndpoint = 'https://rpc.testnet.miden.io';
@@ -244,9 +243,8 @@ export async function createMintConsume(): Promise<void> {
244243
}
245244

246245
// dynamic import → only in the browser, so WASM is loaded client‑side
247-
const { WebClient, AccountStorageMode, NoteType, Address } = await import(
248-
'@demox-labs/miden-sdk'
249-
);
246+
const { WebClient, AccountStorageMode, NoteType, Address } =
247+
await import('@demox-labs/miden-sdk');
250248

251249
const nodeEndpoint = 'https://rpc.testnet.miden.io';
252250
const client = await WebClient.createClient(nodeEndpoint);
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: 'Web Client'
33
sidebar_position: 1
44
---
55

6-
# WebClient
7-
86
TypeScript library, which can be used to programmatically interact with the Miden rollup.
97

108
The Miden WebClient can be used for a variety of things, including:

docs/src/web-client/mint_consume_create_tutorial.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,8 @@ export async function createMintConsume(): Promise<void> {
154154
}
155155

156156
// dynamic import → only in the browser, so WASM is loaded client‑side
157-
const { WebClient, AccountStorageMode, NoteType, Address } = await import(
158-
'@demox-labs/miden-sdk'
159-
);
157+
const { WebClient, AccountStorageMode, NoteType, Address } =
158+
await import('@demox-labs/miden-sdk');
160159

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

0 commit comments

Comments
 (0)