Skip to content

Commit 58a9bd8

Browse files
authored
fix smoke tests running in CI test env (#541)
1 parent 0de99d5 commit 58a9bd8

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

contracts/hardhat.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ require("@nomiclabs/hardhat-solhint");
55
require("hardhat-deploy");
66
require("hardhat-contract-sizer");
77
require("hardhat-deploy-ethers");
8+
require('@openzeppelin/hardhat-upgrades');
89

910
const { accounts, fund, mint } = require("./tasks/account");
1011
const { debug } = require("./tasks/debug");

contracts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@nomiclabs/hardhat-ethers": "^2.0.0",
3131
"@nomiclabs/hardhat-solhint": "^2.0.0",
3232
"@nomiclabs/hardhat-waffle": "^2.0.0",
33+
"@openzeppelin/hardhat-upgrades": "^1.6.0",
3334
"@openzeppelin/contracts": "2.5.0",
3435
"@openzeppelin/upgrades": "^2.8.0",
3536
"@openzeppelin/upgrades-core": "^1.5.0",

contracts/tasks/storageSlots.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const {
1111
assertStorageUpgradeSafe
1212
} = require('@openzeppelin/upgrades-core');
1313
const isFork = process.env.FORK === "true";
14-
const isTest = process.env.IS_TEST === "true";
1514

1615
const getStorageFileLocation = (hre, contractName) => {
1716
const isLocalhost = !isFork && hre.network.name === "localhost";
@@ -108,14 +107,6 @@ const assertStorageLayoutChangeSafe = async (taskArguments, hre) => {
108107
}
109108

110109
const assertUpgradeIsSafe = async (hre, contractName) => {
111-
/*
112-
* Reading validation cache on CI is failing (but not locally when running tests). Disabling this
113-
* functionality in test env for now.
114-
*/
115-
if (isTest) {
116-
return true
117-
}
118-
119110
if (!isContractEligible(contractName)) {
120111
console.warn(`Skipping storage slot validation of ${contractName}.`)
121112
return true

contracts/yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,13 @@
524524
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-2.5.0.tgz#e327a98ba1d26b7756ff62885a0aa0967a375449"
525525
integrity sha512-t3jm8FrhL9tkkJTofkznTqo/XXdHi21w5yXwalEnaMOp22ZwZ0f/mmKdlgMMLPFa6bSVHbY88mKESwJT/7m5Lg==
526526

527+
"@openzeppelin/hardhat-upgrades@^1.6.0":
528+
version "1.6.0"
529+
resolved "https://registry.yarnpkg.com/@openzeppelin/hardhat-upgrades/-/hardhat-upgrades-1.6.0.tgz#735e1c70aea859e284937995e238fcfdea7b69d7"
530+
integrity sha512-4oRB5lH3d5RAUIWKX5wuJvgo06IOgndUoPKYUuLTKW2BmyrMTPc6GZycKf7UCxU0GYeUC9BjsohUAIjqJwMnww==
531+
dependencies:
532+
"@openzeppelin/upgrades-core" "^1.5.0"
533+
527534
"@openzeppelin/upgrades-core@^1.5.0":
528535
version "1.5.0"
529536
resolved "https://registry.yarnpkg.com/@openzeppelin/upgrades-core/-/upgrades-core-1.5.0.tgz#0dc3ddc5386dfd769b46713c902de9f0e8a59d5d"

0 commit comments

Comments
 (0)