@@ -173,11 +173,11 @@ yarn add @aztec/aztec.js @aztec/noir-contracts
173
173
174
174
7 . Create an ` index.ts ` file in the ` src ` directory and add the following imports:
175
175
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
177
177
178
178
and the following setup code:
179
179
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
181
181
182
182
8 . Finally, run the package:
183
183
@@ -202,7 +202,7 @@ The next step is to create some accounts. An in-depth explaining about accounts
202
202
203
203
Continue with adding the following to the ` index.ts ` file in our example:
204
204
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
206
206
207
207
Running ` yarn start ` should now output:
208
208
@@ -228,7 +228,7 @@ If you were looking at your terminal that is running the Sandbox you should hope
228
228
229
229
Now that we have our accounts setup, let's move on to deploy our private token contract. Add this to ` index.ts ` :
230
230
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
232
232
233
233
` yarn start ` will now give the following output:
234
234
@@ -256,7 +256,7 @@ The Private Token Contract emits an unencrypted log message during construction:
256
256
257
257
We can retrieve this emitted log using the ` getUnencryptedLogs() ` api:
258
258
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
260
260
261
261
Our output will now be:
262
262
@@ -282,7 +282,7 @@ A token contract wouldn't be very useful if you aren't able to query the balance
282
282
283
283
Call this function using the following code:
284
284
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
286
286
287
287
Running now should yield output:
288
288
@@ -316,7 +316,7 @@ Now lets transfer some funds from Alice to Bob by calling the `transfer` functio
316
316
317
317
We will again view the unencrypted logs emitted by the function and check the balances after the transfer:
318
318
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
320
320
321
321
Our output should now look like this:
322
322
@@ -350,7 +350,7 @@ Finally, the contract has a `mint` function that can be used to generate new tok
350
350
351
351
Let's mint some tokens to Bob's account:
352
352
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
354
354
355
355
Our complete output should now be:
356
356
0 commit comments