Skip to content

Commit

Permalink
Revert "Hardhat packages upgrade (#604)" (#607)
Browse files Browse the repository at this point in the history
This reverts commit 8caf066.
  • Loading branch information
Franck authored Jul 2, 2021
1 parent 1ed8a5e commit 94f3a74
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 895 deletions.
10 changes: 5 additions & 5 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"author": "Origin Protocol Inc <[email protected]>",
"license": "MIT",
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@nomiclabs/hardhat-solhint": "^2.0.0",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@nomiclabs/hardhat-waffle": "^2.0.0",
"@openzeppelin/contracts": "2.5.0",
"@openzeppelin/hardhat-upgrades": "^1.6.0",
"@openzeppelin/upgrades": "^2.8.0",
Expand All @@ -39,10 +39,10 @@
"eslint": "^7.6.0",
"ethereum-waffle": "^3.0.2",
"ethers": "^5.0.0",
"hardhat": "^2.4.0",
"hardhat": "^2.0.2",
"hardhat-contract-sizer": "^2.0.1",
"hardhat-deploy": "^0.8.8",
"hardhat-deploy-ethers": "^0.3.0-beta.10",
"hardhat-deploy": "^0.7.0-beta.18",
"hardhat-deploy-ethers": "^0.3.0-beta.5",
"husky": "^4.3.0",
"papaparse": "^5.3.0",
"prettier": "^2.0.5",
Expand Down
4 changes: 3 additions & 1 deletion contracts/test/vault/compound.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ describe("Vault with Compound strategy", function () {
.connect(matt)
.mint(nonStandardToken.address, usdtUnits("1200"), 0);
} catch (err) {
expect(/ERC20 operation did not succeed/gi.test(err.message)).to.be.true;
expect(
/revert SafeERC20: ERC20 operation did not succeed/gi.test(err.message)
).to.be.true;
} finally {
// Make sure nothing got affected
await expectApproxSupply(ousd, ousdUnits("200.0"));
Expand Down
4 changes: 3 additions & 1 deletion contracts/test/vault/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ describe("Vault", function () {
.connect(anna)
.mint(nonStandardToken.address, usdtUnits("1500.0"), 0);
} catch (err) {
expect(/ERC20 operation did not succeed/gi.test(err.message)).to.be.true;
expect(
/revert SafeERC20: ERC20 operation did not succeed/gi.test(err.message)
).to.be.true;
} finally {
// Make sure nothing got affected
await expect(anna).has.a.balanceOf("0.00", ousd);
Expand Down
Loading

0 comments on commit 94f3a74

Please sign in to comment.