Skip to content

Commit

Permalink
test send eth throw
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Aug 29, 2024
1 parent c3858cb commit 6083eb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,11 @@ export async function sendETHtoTestWallet() {
to: TESTING_WALLET,
value: parseEther('20'),
});
await delayTime('long');
const balance = await provider.getBalance(TESTING_WALLET);
if (balance.lt(parseEther('20'))) {
throw Error('Error sending ETH to test wallet');
}
return true;
}

Expand Down

0 comments on commit 6083eb6

Please sign in to comment.