Skip to content

Commit 94f3a74

Browse files
author
Franck
authored
Revert "Hardhat packages upgrade (#604)" (#607)
This reverts commit 8caf066.
1 parent 1ed8a5e commit 94f3a74

4 files changed

Lines changed: 129 additions & 895 deletions

File tree

contracts/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"author": "Origin Protocol Inc <support@originprotocol.com>",
2929
"license": "MIT",
3030
"devDependencies": {
31-
"@nomiclabs/hardhat-ethers": "^2.0.2",
31+
"@nomiclabs/hardhat-ethers": "^2.0.0",
3232
"@nomiclabs/hardhat-solhint": "^2.0.0",
33-
"@nomiclabs/hardhat-waffle": "^2.0.1",
33+
"@nomiclabs/hardhat-waffle": "^2.0.0",
3434
"@openzeppelin/contracts": "2.5.0",
3535
"@openzeppelin/hardhat-upgrades": "^1.6.0",
3636
"@openzeppelin/upgrades": "^2.8.0",
@@ -39,10 +39,10 @@
3939
"eslint": "^7.6.0",
4040
"ethereum-waffle": "^3.0.2",
4141
"ethers": "^5.0.0",
42-
"hardhat": "^2.4.0",
42+
"hardhat": "^2.0.2",
4343
"hardhat-contract-sizer": "^2.0.1",
44-
"hardhat-deploy": "^0.8.8",
45-
"hardhat-deploy-ethers": "^0.3.0-beta.10",
44+
"hardhat-deploy": "^0.7.0-beta.18",
45+
"hardhat-deploy-ethers": "^0.3.0-beta.5",
4646
"husky": "^4.3.0",
4747
"papaparse": "^5.3.0",
4848
"prettier": "^2.0.5",

contracts/test/vault/compound.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,9 @@ describe("Vault with Compound strategy", function () {
428428
.connect(matt)
429429
.mint(nonStandardToken.address, usdtUnits("1200"), 0);
430430
} catch (err) {
431-
expect(/ERC20 operation did not succeed/gi.test(err.message)).to.be.true;
431+
expect(
432+
/revert SafeERC20: ERC20 operation did not succeed/gi.test(err.message)
433+
).to.be.true;
432434
} finally {
433435
// Make sure nothing got affected
434436
await expectApproxSupply(ousd, ousdUnits("200.0"));

contracts/test/vault/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ describe("Vault", function () {
133133
.connect(anna)
134134
.mint(nonStandardToken.address, usdtUnits("1500.0"), 0);
135135
} catch (err) {
136-
expect(/ERC20 operation did not succeed/gi.test(err.message)).to.be.true;
136+
expect(
137+
/revert SafeERC20: ERC20 operation did not succeed/gi.test(err.message)
138+
).to.be.true;
137139
} finally {
138140
// Make sure nothing got affected
139141
await expect(anna).has.a.balanceOf("0.00", ousd);

0 commit comments

Comments
 (0)