Skip to content

Commit 64fb0cd

Browse files
authored
update to 0.65.2
1 parent b25994b commit 64fb0cd

File tree

4 files changed

+205
-97
lines changed

4 files changed

+205
-97
lines changed

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 = "aztec-packages-v0.63.1", directory = "noir-projects/aztec-nr/aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "aztec-packages-v0.65.2", directory = "noir-projects/aztec-nr/aztec" }

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"update": "aztec update --contract . && ./.github/scripts/update_contract.sh $(grep -oP 'tag\\s*=\\s*\"\\K[^\"]+' \"Nargo.toml\" | head -1) && yarn"
1818
},
1919
"dependencies": {
20-
"@aztec/accounts": "0.63.1",
21-
"@aztec/aztec.js": "0.63.1",
22-
"@aztec/noir-contracts.js": "0.63.1",
20+
"@aztec/accounts": "0.65.2",
21+
"@aztec/aztec.js": "0.65.2",
22+
"@aztec/noir-contracts.js": "0.65.2",
2323
"@types/node": "^22.5.1"
2424
},
2525
"devDependencies": {

src/test/index.test.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,14 @@ describe("Voting", () => {
7676
const contract = await EasyPrivateVotingContract.deploy(wallets[0], accounts[0].address).send().deployed();
7777
await contract.methods.cast_vote(candidate).send().wait();
7878

79-
const secondVoteReceipt = await contract.methods.cast_vote(candidate).send().getReceipt();
80-
expect(secondVoteReceipt).toEqual(
81-
expect.objectContaining({
82-
status: TxStatus.DROPPED,
83-
}),
84-
);
79+
// We try voting again, but our TX is dropped due to trying to emit duplicate nullifiers
80+
// first confirm that it fails simulation
81+
await expect(contract.methods.cast_vote(candidate).send().wait()).rejects.toThrow(/Nullifier collision/);
82+
// if we skip simulation, tx is dropped
83+
await expect(
84+
contract.methods.cast_vote(candidate).send({ skipPublicSimulation: true }).wait(),
85+
).rejects.toThrow('Reason: Tx dropped by P2P node.');
86+
8587
}, 300_000)
8688

8789
});

0 commit comments

Comments
 (0)