Skip to content

Commit

Permalink
Fix deployment in e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Aug 2, 2023
1 parent 87f7bc4 commit 12873ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions yarn-project/end-to-end/src/e2e_escrow_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 12873ea

Please sign in to comment.