Skip to content

Commit 7fb333a

Browse files
authored
chore: Update docs snippet (#13739)
Moving simple docs snippet from simple test example (so it can be deleted).
1 parent 45cd39b commit 7fb333a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/docs/developers/guides/js_apps/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ npm install @aztec/aztec.js
1717

1818
At the top of your JavaScript file, you can import what you need, eg:
1919

20-
#include_code import_aztecjs yarn-project/end-to-end/src/e2e_simple.test.ts typescript
20+
#include_code import_aztecjs yarn-project/end-to-end/src/e2e_2_pxes.test.ts typescript
2121

2222
## Flow
2323

@@ -26,4 +26,4 @@ These are some of the important functions you'll need to use in your Aztec.js:
2626
- [Create an account with `@aztec/accounts`](./create_account.md)
2727
- [Deploy a contract](./deploy_contract.md)
2828
- [Simulate a function call](./call_view_function.md)
29-
- [Send a transaction](./send_transaction.md)
29+
- [Send a transaction](./send_transaction.md)

yarn-project/end-to-end/src/e2e_2_pxes.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { getSchnorrAccount } from '@aztec/accounts/schnorr';
22
import { type InitialAccountData, deployFundedSchnorrAccount } from '@aztec/accounts/testing';
3+
// docs:start:import_aztecjs
34
import { type AztecAddress, type AztecNode, Fr, type Logger, type PXE, type Wallet, sleep } from '@aztec/aztec.js';
5+
// docs:end:import_aztecjs
46
import { ChildContract } from '@aztec/noir-contracts.js/Child';
57
import { TokenContract } from '@aztec/noir-contracts.js/Token';
68

yarn-project/end-to-end/src/e2e_simple.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// docs:start:import_aztecjs
21
import type { AztecNodeConfig } from '@aztec/aztec-node';
32
import { type AztecNode, ContractDeployer, Fr, type Wallet, waitForProven } from '@aztec/aztec.js';
4-
// docs:end:import_aztecjs
53
// eslint-disable-next-line no-restricted-imports
64
import { EthAddress } from '@aztec/foundation/eth-address';
75
import { StatefulTestContractArtifact } from '@aztec/noir-contracts.js/StatefulTest';

0 commit comments

Comments
 (0)