Skip to content

Commit

Permalink
fix: will throw if wait on dropped tx.
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Aug 22, 2023
1 parent bc6de28 commit 161dfa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yarn-project/end-to-end/src/e2e_lending_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,8 @@ describe('e2e_lending_contract', () => {
// Withdraw more than possible to test the revert.
logger('Withdraw: trying to withdraw more than possible');
const tx = lendingContract.methods.withdraw_public(recipient, 10n ** 9n).send({ origin: recipient });
const receipt = await tx.wait();
await tx.isMined({ interval: 0.1 });
const receipt = await tx.getReceipt();
expect(receipt.status).toBe(TxStatus.DROPPED);
}

Expand Down

0 comments on commit 161dfa1

Please sign in to comment.