Skip to content

Commit 44d540f

Browse files
authored
Merge pull request #84 from AztecProtocol/jc/0.85
update to 85
2 parents a983c18 + 7a80d1c commit 44d540f

File tree

8 files changed

+103
-204
lines changed

8 files changed

+103
-204
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Set Aztec version and start sandbox
3030
run: |
31-
VERSION=0.84.0 aztec-up
31+
VERSION=0.85.0 aztec-up
3232
aztec start --sandbox &
3333
3434
- name: Install project dependencies

Nargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ authors = [ "" ]
55
compiler_version = ">=0.18.0"
66

77
[dependencies]
8-
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v0.84.0", directory = "noir-projects/aztec-nr/aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v0.85.0", directory = "noir-projects/aztec-nr/aztec" }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bash -i <(curl -s https://install.aztec.network)
4141
Install the correct version of the toolkit with:
4242

4343
```bash
44-
aztec-up 0.84.0
44+
aztec-up 0.85.0
4545
```
4646

4747
Start the sandbox with:

jest.integration.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
},
99
"testRegex": "./src/.*\\.test\\.ts$",
1010
"rootDir": "./src",
11-
"testTimeout": 70000
11+
"testTimeout": 100000
1212
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"update-readme-version": "node ./.github/scripts/update-readme-version.js"
2323
},
2424
"dependencies": {
25-
"@aztec/accounts": "0.84.0",
26-
"@aztec/aztec.js": "0.84.0",
27-
"@aztec/noir-contracts.js": "0.84.0",
28-
"@aztec/stdlib": "0.84.0",
25+
"@aztec/accounts": "0.85.0",
26+
"@aztec/aztec.js": "0.85.0",
27+
"@aztec/noir-contracts.js": "0.85.0",
28+
"@aztec/stdlib": "0.85.0",
2929
"@types/node": "^22.5.1"
3030
},
3131
"devDependencies": {

src/test/e2e/accounts.test.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe("Accounts", () => {
5454

5555
// generate random accounts
5656
randomAccountManagers = await Promise.all(
57-
(await generateSchnorrAccounts(5)).map(
57+
(await generateSchnorrAccounts(2)).map(
5858
a => getSchnorrAccount(pxe, a.secret, a.signingKey, a.salt)
5959
)
6060
);
@@ -110,21 +110,15 @@ describe("Accounts", () => {
110110
let sentTxs = [];
111111
for (let i = 0; i < randomWallets.length; i++) {
112112
const paymentMethod = new FeeJuicePaymentMethodWithClaim(randomWallets[i], claims[i]);
113-
sentTxs.push(randomAccountManagers[i].deploy({ fee: { paymentMethod } }));
113+
await randomAccountManagers[i].deploy({ fee: { paymentMethod } }).wait();
114114
}
115-
await Promise.all(sentTxs.map(stx => stx.wait()));
116-
117115
// balance after deploy with claimed fee juice
118-
balances = await Promise.all(randomAddresses.map(async a => getFeeJuiceBalance(a, pxe)));
116+
balances = await Promise.all(randomAddresses.map(async a => await getFeeJuiceBalance(a, pxe)));
119117
const amountAfterDeploy = claimAmount - approxMaxDeployCost;
120118
balances.forEach(b => expect(b).toBeGreaterThanOrEqual(amountAfterDeploy));
121119

122120
});
123121

124-
it("Deploys first unfunded account from first funded account", async () => {
125-
const tx_acc = await randomAccountManagers[0].deploy({ deployWallet: wallets[0] });
126-
});
127-
128122
it("Sponsored contract deployment", async () => {
129123
const salt = Fr.random();
130124
const VotingContractArtifact = EasyPrivateVotingContractArtifact
@@ -138,7 +132,6 @@ describe("Accounts", () => {
138132
const daWallets = await Promise.all(accounts.map(a => a.getWallet()));
139133
const [deployerWallet, adminWallet] = daWallets;
140134
const [deployerAddress, adminAddress] = daWallets.map(w => w.getAddress());
141-
// const adminAddress = adminWallet.getCompleteAddress().address;
142135

143136
const deploymentData = await getContractInstanceFromDeployParams(VotingContractArtifact,
144137
{
@@ -151,12 +144,12 @@ describe("Accounts", () => {
151144
contractAddressSalt: salt,
152145
fee: { paymentMethod: sponsoredPaymentMethod } // without the sponsoredFPC the deployment fails, thus confirming it works
153146
})
147+
154148
const receipt = await tx.getReceipt();
155149

156150
expect(receipt).toEqual(
157151
expect.objectContaining({
158152
status: TxStatus.PENDING,
159-
error: ''
160153
}),
161154
);
162155

src/test/e2e/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe("Voting", () => {
154154
// tx will be included in a block but with app logic reverted
155155
await expect(
156156
votingContract.methods.cast_vote(candidate).send({ skipPublicSimulation: true }).wait(),
157-
).rejects.toThrow('Reason: Tx dropped by P2P node.');
157+
).rejects.toThrow(/Existing nullifier/);
158158

159159
})
160160

0 commit comments

Comments
 (0)