Use _spendAllowance in ERC20FlashMint (#3226)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2022-03-08 20:34:24 +01:00
committed by GitHub
parent 212221d6ff
commit f8bfa560e9
3 changed files with 3 additions and 4 deletions

View File

@ -67,7 +67,7 @@ contract('ERC20FlashMint', function (accounts) {
const receiver = await ERC3156FlashBorrowerMock.new(true, false);
await expectRevert(
this.token.flashLoan(receiver.address, this.token.address, loanAmount, '0x'),
'ERC20FlashMint: allowance does not allow refund',
'ERC20: insufficient allowance',
);
});