Skip to content

Commit

Permalink
chore: fix missing migrations to immutable contract fn interaction (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunkar authored Oct 8, 2024
1 parent 764bba4 commit 41c496f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions yarn-project/end-to-end/src/e2e_block_building.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/end-to-end/src/spartan/transfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ 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)
).methods.transfer_public(w.getAddress(), recipient, transferAmount, 0),
),
]);

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 })));
}
Expand Down

0 comments on commit 41c496f

Please sign in to comment.