Skip to content

Commit

Permalink
Updated test error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
The3D committed Oct 15, 2020
1 parent 6a06a3e commit e4dc67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/flashloan.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit e4dc67e

Please sign in to comment.