Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Aug 1, 2023
1 parent e464045 commit 1cab797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/end-to-end/src/e2e_escrow_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ describe('e2e_escrow_contract', () => {
await aztecRpcServer.addAccount(escrowPrivateKey, deployInfo.address, deployInfo.partialAddress);
const escrowDeployTx = EscrowContract.deployWithPublicKey(aztecRpcServer, escrowPublicKey, owner);
await escrowDeployTx.send({ contractAddressSalt: salt }).wait();
escrowContract = new EscrowContract(escrowDeployTx.completeContractAddress!, wallet);
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(r => new ZkTokenContract(r.contractAddress!, wallet));
.then(async r => await ZkTokenContract.create(r.contractAddress!, wallet));
logger(`Token contract deployed at ${zkTokenContract.address}`);
}, 100_000);

Expand Down

0 comments on commit 1cab797

Please sign in to comment.