From 6083eb6b2cdfca9d00e01d5e0eea499010dd5887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Mi=C3=B1o?= Date: Thu, 29 Aug 2024 14:23:16 -0400 Subject: [PATCH] test send eth throw --- e2e/helpers.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e/helpers.ts b/e2e/helpers.ts index dd82d8f2754..7ecb9811fc3 100644 --- a/e2e/helpers.ts +++ b/e2e/helpers.ts @@ -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; }