Skip to content

Commit

Permalink
chore: Merge devnet to master (#8044)
Browse files Browse the repository at this point in the history
This PR simply merge devnet changes back to master.

Co-authored-by: esau <152162806+sklppy88@users.noreply.github.com>
  • Loading branch information
PhilWindle and sklppy88 authored Aug 16, 2024
1 parent 8b795eb commit f84950f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions yarn-project/cli/src/cmds/devnet/bootstrap_network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ async function deployToken(
// @ts-ignore - Importing noir-contracts.js even in devDeps results in a circular dependency error. Need to ignore because this line doesn't cause an error in a dev environment
const { TokenContract, TokenBridgeContract } = await import('@aztec/noir-contracts.js');
const devCoin = await TokenContract.deploy(wallet, wallet.getAddress(), 'DevCoin', 'DEV', 18)
.send()
.send({ universalDeploy: true })
.deployed({ proven: true, provenTimeout: 600 });
const bridge = await TokenBridgeContract.deploy(wallet, devCoin.address, l1Portal)
.send()
.send({ universalDeploy: true })
.deployed({ proven: true, provenTimeout: 600 });

await new BatchCall(wallet, [
Expand Down Expand Up @@ -201,7 +201,9 @@ async function deployFPC(wallet: Wallet, tokenAddress: AztecAddress): Promise<Co
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - Importing noir-contracts.js even in devDeps results in a circular dependency error. Need to ignore because this line doesn't cause an error in a dev environment
const { FPCContract } = await import('@aztec/noir-contracts.js');
const fpc = await FPCContract.deploy(wallet, tokenAddress).send().deployed({ proven: true, provenTimeout: 600 });
const fpc = await FPCContract.deploy(wallet, tokenAddress)
.send({ universalDeploy: true })
.deployed({ proven: true, provenTimeout: 600 });
const info: ContractDeploymentInfo = {
address: fpc.address,
initHash: fpc.instance.initializationHash,
Expand All @@ -215,7 +217,7 @@ async function deployCounter(wallet: Wallet): Promise<ContractDeploymentInfo> {
// @ts-ignore - Importing noir-contracts.js even in devDeps results in a circular dependency error. Need to ignore because this line doesn't cause an error in a dev environment
const { CounterContract } = await import('@aztec/noir-contracts.js');
const counter = await CounterContract.deploy(wallet, 1, wallet.getAddress(), wallet.getAddress())
.send()
.send({ universalDeploy: true })
.deployed({ proven: true, provenTimeout: 600 });
const info: ContractDeploymentInfo = {
address: counter.address,
Expand Down

0 comments on commit f84950f

Please sign in to comment.