Skip to content

Commit cf7f073

Browse files
committed
Remove account-contract example
A custom account contract can't be transacted through with the current tooling: the standard EmbeddedWallet resolves a tx's `from` to a built-in schnorr/ecdsa account by type and has no hook to register a custom account, so the example could only ever deploy — never actually be used. Rather than ship a deploy-only example that misleads (or maintain fragile low-level PXE plumbing), remove it along with its CI workflow and doc references. The repo now covers 5 working examples, all green in CI.
1 parent 78b1577 commit cf7f073

14 files changed

Lines changed: 2 additions & 6850 deletions

‎.github/workflows/account-contract-tests.yml‎

Lines changed: 0 additions & 81 deletions
This file was deleted.

‎CLAUDE.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ This is a collection of Aztec smart contract examples written in Noir, designed
2121

2222
```
2323
aztec-examples/
24-
├── account-contract/ # Custom password-based account contract + TS deploy
2524
├── custom-note/ # Defining a custom private note type
2625
├── note-send-proof/ # Off-chain note-hash proofs + Vite frontend
2726
│ ├── circuits/ # Vanilla Noir circuit (aztec-nargo)
@@ -259,10 +258,9 @@ GitHub Actions workflows automatically test examples on pull requests to `next`
259258
- `prediction-market-tests.yml`
260259
- `note-send-proof-tests.yml`
261260
- `test-wallet-webapp-tests.yml`
262-
- `account-contract-tests.yml`
263261
- `custom-note-tests.yml`
264262

265-
Each workflow installs the pinned Aztec CLI (`AZTEC_VERSION`), starts a local network when the example's tests need one, compiles circuits/contracts, and runs that example's tests (uploading logs on failure). The `custom-note` workflow is contract-only, so it just compiles; the `account-contract` workflow compiles the contract and runs its deploy script against a local network as a smoke test.
263+
Each workflow installs the pinned Aztec CLI (`AZTEC_VERSION`), starts a local network when the example's tests need one, compiles circuits/contracts, and runs that example's tests (uploading logs on failure). The `custom-note` workflow is contract-only, so it just compiles.
266264

267265
## Common Issues and Solutions
268266

‎README.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A collection of example Aztec smart contracts and circuits written in Noir, desi
66

77
## Overview
88

9-
This repository contains practical examples demonstrating various features of Aztec's zero-knowledge smart contract platform, from custom notes and account contracts to advanced proof verification patterns.
9+
This repository contains practical examples demonstrating various features of Aztec's zero-knowledge smart contract platform, from custom notes to advanced proof verification patterns.
1010

1111
You can find additional examples in the Aztec monorepo [docs examples folder](https://github.com/AztecProtocol/aztec-packages/tree/next/docs/examples), including:
1212

@@ -18,10 +18,6 @@ You can find additional examples in the Aztec monorepo [docs examples folder](ht
1818

1919
All examples target **Aztec v5.0.0-rc.1**.
2020

21-
### [account-contract](./account-contract)
22-
23-
A custom account contract whose authorization is a password (poseidon2 hash) check instead of a signature, plus TypeScript to deploy and transact through it. Demonstrates the v5 `AccountContract` / `Account` / entrypoint interfaces.
24-
2521
### [custom-note](./custom-note)
2622

2723
Defining a custom private note type with the `#[note]` macro and inserting it from a contract.

‎account-contract/.gitignore‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎account-contract/.yarnrc.yml‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎account-contract/Nargo.toml‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎account-contract/README.md‎

Lines changed: 0 additions & 223 deletions
This file was deleted.

‎account-contract/package.json‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)