Skip to content

Commit 8caf066

Browse files
FranckDanielVF
andauthored
Hardhat packages upgrade (#604)
* Hardhat packages upgrade * Hardhat changed error messages, update tests to match Co-authored-by: Daniel Von Fange <daniel@leancoder.com>
1 parent 53b73ec commit 8caf066

4 files changed

Lines changed: 895 additions & 129 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.0",
31+
"@nomiclabs/hardhat-ethers": "^2.0.2",
3232
"@nomiclabs/hardhat-solhint": "^2.0.0",
33-
"@nomiclabs/hardhat-waffle": "^2.0.0",
33+
"@nomiclabs/hardhat-waffle": "^2.0.1",
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.0.2",
42+
"hardhat": "^2.4.0",
4343
"hardhat-contract-sizer": "^2.0.1",
44-
"hardhat-deploy": "^0.7.0-beta.18",
45-
"hardhat-deploy-ethers": "^0.3.0-beta.5",
44+
"hardhat-deploy": "^0.8.8",
45+
"hardhat-deploy-ethers": "^0.3.0-beta.10",
4646
"husky": "^4.3.0",
4747
"papaparse": "^5.3.0",
4848
"prettier": "^2.0.5",

contracts/test/vault/compound.js

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

contracts/test/vault/index.js

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

0 commit comments

Comments
 (0)