From 12873ea446d6d92d781fbf53d31e909ac9b29917 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Wed, 2 Aug 2023 08:42:41 -0300 Subject: [PATCH] Fix deployment in e2e test --- yarn-project/end-to-end/src/e2e_escrow_contract.test.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/yarn-project/end-to-end/src/e2e_escrow_contract.test.ts b/yarn-project/end-to-end/src/e2e_escrow_contract.test.ts index 51c93103f64..6153c6a8430 100644 --- a/yarn-project/end-to-end/src/e2e_escrow_contract.test.ts +++ b/yarn-project/end-to-end/src/e2e_escrow_contract.test.ts @@ -47,16 +47,13 @@ describe('e2e_escrow_contract', () => { const salt = Fr.random(); const deployInfo = await getContractDeploymentInfo(EscrowContractAbi, [owner], salt, escrowPublicKey); await aztecRpcServer.addAccount(escrowPrivateKey, deployInfo.address, deployInfo.partialAddress); - const escrowDeployTx = EscrowContract.deployWithPublicKey(aztecRpcServer, escrowPublicKey, owner); + const escrowDeployTx = EscrowContract.deployWithPublicKey(wallet, escrowPublicKey, owner); await escrowDeployTx.send({ contractAddressSalt: salt }).wait(); escrowContract = await EscrowContract.create(escrowDeployTx.completeContractAddress!, wallet); logger(`Escrow contract deployed at ${escrowContract.address}`); // Deploy ZK token contract and mint funds for the escrow contract - zkTokenContract = await ZkTokenContract.deploy(aztecRpcServer, 100n, escrowContract.address) - .send() - .wait() - .then(async r => await ZkTokenContract.create(r.contractAddress!, wallet)); + zkTokenContract = await ZkTokenContract.deploy(wallet, 100n, escrowContract.address).send().deployed(); logger(`Token contract deployed at ${zkTokenContract.address}`); }, 100_000);