Skip to content

Commit d234b45

Browse files
authored
update to 87.3
1 parent 5d1bd54 commit d234b45

8 files changed

Lines changed: 260 additions & 246 deletions

File tree

.github/scripts/update_contract.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo "version tag: $version_tag"
77
nargo_file_path="$copy_to_file_path/Nargo.toml"
88

99
repo_url="https://github.com/AztecProtocol/aztec-packages.git"
10-
contracts_path="noir-projects/noir-contracts/contracts"
10+
contracts_path="noir-projects/noir-contracts/contracts/app"
1111

1212
# Check if the file exists
1313
if [ ! -f "$nargo_file_path" ]; then

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.87.2", directory = "noir-projects/aztec-nr/aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v0.87.3", 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.87.2
44+
aztec-up 0.87.3
4545
```
4646

4747
---

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"update-readme-version": "node ./.github/scripts/update-readme-version.js"
2525
},
2626
"dependencies": {
27-
"@aztec/accounts": "0.87.2",
28-
"@aztec/aztec.js": "0.87.2",
29-
"@aztec/noir-contracts.js": "0.87.2",
30-
"@aztec/protocol-contracts": "0.87.2",
31-
"@aztec/pxe": "0.87.2",
32-
"@aztec/stdlib": "0.87.2",
27+
"@aztec/accounts": "0.87.3",
28+
"@aztec/aztec.js": "0.87.3",
29+
"@aztec/noir-contracts.js": "0.87.3",
30+
"@aztec/protocol-contracts": "0.87.3",
31+
"@aztec/pxe": "0.87.3",
32+
"@aztec/stdlib": "0.87.3",
3333
"@types/dotenv": "^8.2.3",
3434
"@types/node": "^22.5.1",
3535
"dotenv": "^16.4.7"

scripts/multiple_pxe.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ const store2 = await createStore('pxe2', {
2525
});
2626

2727
const setupPxe1 = async () => {
28-
const pxe = await createPXEService(node, fullConfig, true, store1);
28+
const pxe = await createPXEService(node, fullConfig, {store: store1});
2929
await waitForPXE(pxe);
3030
return pxe;
3131
};
3232

3333
const setupPxe2 = async () => {
34-
const pxe = await createPXEService(node, fullConfig, true, store2);
34+
const pxe = await createPXEService(node, fullConfig, {store: store2});
3535
await waitForPXE(pxe);
3636
return pxe;
3737
};
@@ -105,7 +105,7 @@ async function main() {
105105
wallet2
106106
)
107107

108-
await l2TokenContract.methods.sync_notes().simulate()
108+
await l2TokenContract.methods.sync_private_state().simulate()
109109

110110
const notes = await pxe2.getNotes({ txHash: private_mint_tx.txHash });
111111
console.log(notes)

src/test/utils.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ pub unconstrained fn setup() -> (&mut TestEnvironment, AztecAddress, AztecAddres
1515

1616
env.advance_block_by(1);
1717
(&mut env, voting_contract.to_address(), admin)
18-
}
18+
}

src/utils/setup_pxe.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import { createPXEService, getPXEServiceConfig } from '@aztec/pxe/server';
33
import { createStore } from "@aztec/kv-store/lmdb"
4-
import { createAztecNodeClient, waitForPXE } from '@aztec/aztec.js';
4+
import { createAztecNodeClient, createLogger, waitForPXE } from '@aztec/aztec.js';
55

66
const { NODE_URL = 'https://aztec-alpha-testnet-fullnode.zkv.xyz' } = process.env;
77
const node = createAztecNodeClient(NODE_URL)
@@ -16,7 +16,20 @@ const store = await createStore('pxe', {
1616
});
1717

1818
export const setupPXE = async () => {
19-
const pxe = await createPXEService(node, fullConfig, true, store);
19+
const pxeLogger = createLogger('aztec:pxe');
20+
const proverLogger = createLogger('aztec:prover');
21+
const storeLogger = createLogger('aztec:store');
22+
23+
const creationOptions = {
24+
loggers: {
25+
store: storeLogger,
26+
pxe: pxeLogger,
27+
prover: proverLogger
28+
},
29+
store
30+
}
31+
32+
const pxe = await createPXEService(node, fullConfig, creationOptions);
2033
await waitForPXE(pxe);
2134
return pxe;
2235
};

0 commit comments

Comments
 (0)