From e4dc67ec7acd1ddfe34094ed19898ace8ce3f620 Mon Sep 17 00:00:00 2001 From: The3D Date: Thu, 15 Oct 2020 17:20:22 +0200 Subject: [PATCH] Updated test error messages --- test/flashloan.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/flashloan.spec.ts b/test/flashloan.spec.ts index b4274a5a5..1ca080f93 100644 --- a/test/flashloan.spec.ts +++ b/test/flashloan.spec.ts @@ -114,7 +114,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => { '0x10', '0' ) - ).to.be.revertedWith(TRANSFER_AMOUNT_EXCEEDS_BALANCE); + ).to.be.revertedWith(SAFEERC20_LOWLEVEL_CALL); }); it('Takes WETH flashloan, simulating a receiver as EOA (revert expected)', async () => { @@ -356,7 +356,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => { pool .connect(caller.signer) .flashLoan(_mockFlashLoanReceiver.address, weth.address, flashAmount, 0, '0x10', '0') - ).to.be.revertedWith('ERC20: transfer amount exceeds allowance'); + ).to.be.revertedWith(SAFEERC20_LOWLEVEL_CALL); }); it('Caller takes a WETH flashloan with mode = 1', async () => {