mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Updated test error messages
This commit is contained in:
parent
6a06a3e88f
commit
e4dc67ec7a
|
@ -114,7 +114,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => {
|
||||||
'0x10',
|
'0x10',
|
||||||
'0'
|
'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 () => {
|
it('Takes WETH flashloan, simulating a receiver as EOA (revert expected)', async () => {
|
||||||
|
@ -356,7 +356,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => {
|
||||||
pool
|
pool
|
||||||
.connect(caller.signer)
|
.connect(caller.signer)
|
||||||
.flashLoan(_mockFlashLoanReceiver.address, weth.address, flashAmount, 0, '0x10', '0')
|
.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 () => {
|
it('Caller takes a WETH flashloan with mode = 1', async () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user