Skip to content

Commit

Permalink
Fix upgrade test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Jun 9, 2023
1 parent c387b22 commit bb09e94
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ module.exports = {
},
},
},
{
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200,
details: {
yul: true,
},
},
},
},
{
version: "0.8.17",
},
Expand Down
3 changes: 2 additions & 1 deletion test/upgrade/00_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ const tagsByVersion = {
},
"2.2.1": {
oldVersion: "v2.2.0",
newVersion: "v2.2.1-rc.1",
newVersion: "v2.2.1",
deployScript: "v2.2.0",
},
};

Expand Down
2 changes: 2 additions & 0 deletions test/util/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ async function deploySuite(deployer, newVersion) {

console.log(`Fetching tags`);
shell.exec(`git fetch --force --tags origin`);

console.log(`Checking out version ${tag}`);
shell.exec(`rm -rf contracts/*`);
shell.exec(`git checkout ${tag} contracts`);

if (scriptsTag) {
console.log(`Checking out scripts on version ${scriptsTag}`);
shell.exec(`rm -rf scripts/*`);
Expand Down

0 comments on commit bb09e94

Please sign in to comment.