Skip to content

Commit 91efec3

Browse files
authored
fix: devnet bootstrap use universal deploy (#8036)
title
1 parent 65583e3 commit 91efec3

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

yarn-project/cli/src/cmds/devnet/bootstrap_network.ts

+12-4
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,12 @@ async function deployToken(
143143
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
144144
// @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
145145
const { TokenContract, TokenBridgeContract } = await import('@aztec/noir-contracts.js');
146-
const devCoin = await TokenContract.deploy(wallet, wallet.getAddress(), 'DevCoin', 'DEV', 18).send().deployed();
147-
const bridge = await TokenBridgeContract.deploy(wallet, devCoin.address, l1Portal).send().deployed();
146+
const devCoin = await TokenContract.deploy(wallet, wallet.getAddress(), 'DevCoin', 'DEV', 18).send({
147+
universalDeploy: true,
148+
}).deployed();
149+
const bridge = await TokenBridgeContract.deploy(wallet, devCoin.address, l1Portal).send({
150+
universalDeploy: true,
151+
}).deployed();
148152

149153
await new BatchCall(wallet, [
150154
devCoin.methods.set_minter(bridge.address, true).request(),
@@ -197,7 +201,9 @@ async function deployFPC(wallet: Wallet, tokenAddress: AztecAddress): Promise<Co
197201
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
198202
// @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
199203
const { FPCContract } = await import('@aztec/noir-contracts.js');
200-
const fpc = await FPCContract.deploy(wallet, tokenAddress).send().deployed();
204+
const fpc = await FPCContract.deploy(wallet, tokenAddress).send({
205+
universalDeploy: true,
206+
}).deployed();
201207
const info: ContractDeploymentInfo = {
202208
address: fpc.address,
203209
initHash: fpc.instance.initializationHash,
@@ -210,7 +216,9 @@ async function deployCounter(wallet: Wallet): Promise<ContractDeploymentInfo> {
210216
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
211217
// @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
212218
const { CounterContract } = await import('@aztec/noir-contracts.js');
213-
const counter = await CounterContract.deploy(wallet, 1, wallet.getAddress(), wallet.getAddress()).send().deployed();
219+
const counter = await CounterContract.deploy(wallet, 1, wallet.getAddress(), wallet.getAddress()).send({
220+
universalDeploy: true,
221+
}).deployed();
214222
const info: ContractDeploymentInfo = {
215223
address: counter.address,
216224
initHash: counter.instance.initializationHash,

0 commit comments

Comments
 (0)