Skip to content

Commit 438d19a

Browse files
authored
Merge pull request #749 from fei-protocol/fix-failing-tests
Fix failing tests
2 parents bc37e1f + df8eae6 commit 438d19a

File tree

7 files changed

+710
-926
lines changed

7 files changed

+710
-926
lines changed

package-lock.json

Lines changed: 703 additions & 919 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@gnosis.pm/safe-deployments": "^1.12.0",
5656
"@gnosis.pm/safe-ethers-lib": "^1.1.0",
5757
"@nomiclabs/hardhat-waffle": "^2.0.3",
58-
"@openzeppelin/contracts": "^4.6.0-rc.0",
58+
"@openzeppelin/contracts": "4.6.0",
5959
"@openzeppelin/test-environment": "^0.1.7",
6060
"@openzeppelin/test-helpers": "^0.5.15",
6161
"@orcaprotocol/contracts": "^5.0.1",

test/unit/pcv/utils/RatioPCVControllerV2.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ describe('RatioPCVControllerV2', function () {
571571
pcvController
572572
.connect(impersonatedSigners[pcvControllerAddress])
573573
.transferFrom(pcvDepositEth.address, token.address, userAddress, pcvAmount, {}),
574-
'ERC20: transfer amount exceeds allowance'
574+
'ERC20: insufficient allowance'
575575
);
576576
});
577577

@@ -677,7 +677,7 @@ describe('RatioPCVControllerV2', function () {
677677
pcvController
678678
.connect(impersonatedSigners[pcvControllerAddress])
679679
.transferFromRatio(pcvDepositEth.address, token.address, userAddress, '10000', {}),
680-
'ERC20: transfer amount exceeds allowance'
680+
'ERC20: insufficient allowance'
681681
);
682682
});
683683

test/unit/peg/FixedPricePSM.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ describe('FixedPricePSM', function () {
812812
await fei.connect(impersonatedSigners[minterAddress]).mint(userAddress, 100);
813813
await expectRevert(
814814
psm.connect(impersonatedSigners[userAddress]).redeem(userAddress, 100, 0),
815-
'ERC20: transfer amount exceeds allowance'
815+
'ERC20: insufficient allowance'
816816
);
817817
});
818818
});

test/unit/peg/MintRedeemPausePSM.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ describe('PegStabilityModule', function () {
553553
await fei.connect(impersonatedSigners[minterAddress]).mint(userAddress, 10_000_000);
554554
await expectRevert(
555555
psm.connect(impersonatedSigners[userAddress]).redeem(userAddress, 1, 0),
556-
'ERC20: transfer amount exceeds allowance'
556+
'ERC20: insufficient allowance'
557557
);
558558
});
559559
});

test/unit/peg/PegStabilityModule.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ describe('PegStabilityModule', function () {
454454
await fei.connect(impersonatedSigners[minterAddress]).mint(userAddress, 10_000_000);
455455
await expectRevert(
456456
psm.connect(impersonatedSigners[userAddress]).redeem(userAddress, 1, 0),
457-
'ERC20: transfer amount exceeds allowance'
457+
'ERC20: insufficient allowance'
458458
);
459459
});
460460
});

test/unit/staking/TribalChiefPart2.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ describe('TribalChief', () => {
404404
it('should not be able to deposit without LPToken approval', async function () {
405405
await expectRevert(
406406
this.tribalChief.connect(impersonatedSigners[userAddress]).deposit(pid, totalStaked, 100),
407-
'ERC20: transfer amount exceeds allowance'
407+
'ERC20: insufficient allowance'
408408
);
409409
});
410410

0 commit comments

Comments
 (0)