Update contracts to support Solidity 0.8.x (#2442)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
@ -93,9 +93,9 @@ function shouldOnlyRevertOnErrors () {
|
||||
});
|
||||
|
||||
it('reverts when decreasing the allowance', async function () {
|
||||
await expectRevert(
|
||||
await expectRevert.unspecified(
|
||||
this.wrapper.decreaseAllowance(10),
|
||||
'SafeERC20: decreased allowance below zero',
|
||||
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -125,9 +125,8 @@ function shouldOnlyRevertOnErrors () {
|
||||
});
|
||||
|
||||
it('reverts when decreasing the allowance to a negative value', async function () {
|
||||
await expectRevert(
|
||||
await expectRevert.unspecified(
|
||||
this.wrapper.decreaseAllowance(200),
|
||||
'SafeERC20: decreased allowance below zero',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user