diff --git a/yarn-project/end-to-end/src/e2e_block_building.test.ts b/yarn-project/end-to-end/src/e2e_block_building.test.ts index 2b10605cff6..17e19850e80 100644 --- a/yarn-project/end-to-end/src/e2e_block_building.test.ts +++ b/yarn-project/end-to-end/src/e2e_block_building.test.ts @@ -394,8 +394,7 @@ describe('e2e_block_building', () => { const txs = []; for (let i = 0; i < 30; i++) { const tx = token.methods.mint_public(owner.getAddress(), 10n); - await tx.create({ skipPublicSimulation: false }); - txs.push(tx.send()); + txs.push(tx.send({ skipPublicSimulation: false })); } logger.info('Waiting for txs to be mined'); diff --git a/yarn-project/end-to-end/src/spartan/transfer.test.ts b/yarn-project/end-to-end/src/spartan/transfer.test.ts index d32c6d157fa..0e1bda7c720 100644 --- a/yarn-project/end-to-end/src/spartan/transfer.test.ts +++ b/yarn-project/end-to-end/src/spartan/transfer.test.ts @@ -116,7 +116,7 @@ describe('token transfer test', () => { // For each round, make both private and public transfers for (let i = 1n; i <= ROUNDS; i++) { - const txs = await Promise.all([ + const interactions = await Promise.all([ ...wallets.map(async w => ( await TokenContract.at(tokenAddress, w) @@ -124,7 +124,7 @@ describe('token transfer test', () => { ), ]); - txs.forEach(async t => await t.prove()); + const txs = await Promise.all(interactions.map(async i => await i.prove())); await Promise.all(txs.map(t => t.send().wait({ timeout: 600 }))); }