Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1e0684f

Browse files
committedAug 22, 2023
fixes
1 parent 99c1400 commit 1e0684f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎docs/docs/dev_docs/getting_started/sandbox.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ yarn add @aztec/aztec.js @aztec/noir-contracts
173173

174174
7. Create an `index.ts` file in the `src` directory and add the following imports:
175175

176-
#include_code imports /yarn-project/end-to-end/src/e2e_sandbox_example.ts typescript
176+
#include_code imports /yarn-project/end-to-end/src/e2e_sandbox_example.test.ts typescript
177177

178178
and the following setup code:
179179

180-
#include_code setup /yarn-project/end-to-end/src/e2e_sandbox_example.ts typescript
180+
#include_code setup /yarn-project/end-to-end/src/e2e_sandbox_example.test.ts typescript
181181

182182
8. Finally, run the package:
183183

@@ -202,7 +202,7 @@ The next step is to create some accounts. An in-depth explaining about accounts
202202

203203
Continue with adding the following to the `index.ts` file in our example:
204204

205-
#include_code Accounts /yarn-project/end-to-end/src/e2e_sandbox_example.ts typescript
205+
#include_code Accounts /yarn-project/end-to-end/src/e2e_sandbox_example.test.ts typescript
206206

207207
Running `yarn start` should now output:
208208

@@ -228,7 +228,7 @@ If you were looking at your terminal that is running the Sandbox you should hope
228228

229229
Now that we have our accounts setup, let's move on to deploy our private token contract. Add this to `index.ts`:
230230

231-
#include_code Deployment /yarn-project/end-to-end/src/e2e_sandbox_example.ts typescript
231+
#include_code Deployment /yarn-project/end-to-end/src/e2e_sandbox_example.test.ts typescript
232232

233233
`yarn start` will now give the following output:
234234

@@ -256,7 +256,7 @@ The Private Token Contract emits an unencrypted log message during construction:
256256

257257
We can retrieve this emitted log using the `getUnencryptedLogs()` api:
258258

259-
#include_code Logs /yarn-project/end-to-end/src/e2e_sandbox_example.ts typescript
259+
#include_code Logs /yarn-project/end-to-end/src/e2e_sandbox_example.test.ts typescript
260260

261261
Our output will now be:
262262

@@ -282,7 +282,7 @@ A token contract wouldn't be very useful if you aren't able to query the balance
282282

283283
Call this function using the following code:
284284

285-
#include_code Balance /yarn-project/end-to-end/src/e2e_sandbox_example.ts typescript
285+
#include_code Balance /yarn-project/end-to-end/src/e2e_sandbox_example.test.ts typescript
286286

287287
Running now should yield output:
288288

@@ -316,7 +316,7 @@ Now lets transfer some funds from Alice to Bob by calling the `transfer` functio
316316

317317
We will again view the unencrypted logs emitted by the function and check the balances after the transfer:
318318

319-
#include_code Transfer /yarn-project/end-to-end/src/e2e_sandbox_example.ts typescript
319+
#include_code Transfer /yarn-project/end-to-end/src/e2e_sandbox_example.test.ts typescript
320320

321321
Our output should now look like this:
322322

@@ -350,7 +350,7 @@ Finally, the contract has a `mint` function that can be used to generate new tok
350350

351351
Let's mint some tokens to Bob's account:
352352

353-
#include_code Mint /yarn-project/end-to-end/src/e2e_sandbox_example.ts typescript
353+
#include_code Mint /yarn-project/end-to-end/src/e2e_sandbox_example.test.ts typescript
354354

355355
Our complete output should now be:
356356

0 commit comments

Comments
 (0)
Please sign in to comment.