From 4e846b1239832ecda5ee45b1e81b264e00ae1feb Mon Sep 17 00:00:00 2001 From: donosonaumczuk Date: Wed, 1 Nov 2023 16:59:55 -0300 Subject: [PATCH] fix: Scripts renaming and catapulta network Co-authored-by: Victor Naumik --- script/S01_DeployLensV2Upgrade.s.sol | 2 +- script/S02_DeployLensV2Periphery.s.sol | 2 +- script/S04_PerformV2Upgrade.s.sol | 2 +- script/run.sh | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/script/S01_DeployLensV2Upgrade.s.sol b/script/S01_DeployLensV2Upgrade.s.sol index 685eff5..9c6943e 100644 --- a/script/S01_DeployLensV2Upgrade.s.sol +++ b/script/S01_DeployLensV2Upgrade.s.sol @@ -360,7 +360,7 @@ contract S01_DeployLensV2Upgrade is Script, ForkManagement, ArrayHelpers { console.log('"arguments": ['); console.log('\t"%s"', address(proxyAdminContract)); console.log('\t"%s"', address(governanceContract)); - console.log('\t"%s"', governance); + console.log('\t"%s"', proxyAdmin); console.log('\t"%s"', address(legacyLensHub)); console.log('\t"%s"', lensHubV2Impl); console.log('\t"%s"', treasury); diff --git a/script/S02_DeployLensV2Periphery.s.sol b/script/S02_DeployLensV2Periphery.s.sol index 9c6fdb0..69d6eb2 100644 --- a/script/S02_DeployLensV2Periphery.s.sol +++ b/script/S02_DeployLensV2Periphery.s.sol @@ -31,7 +31,7 @@ import {LibString} from 'solady/utils/LibString.sol'; import {ArrayHelpers} from 'script/helpers/ArrayHelpers.sol'; -contract B_DeployLensV2Periphery is Script, ForkManagement, ArrayHelpers { +contract S02_DeployLensV2Periphery is Script, ForkManagement, ArrayHelpers { // add this to be excluded from coverage report function testLensV2DeployPeriphery() public {} diff --git a/script/S04_PerformV2Upgrade.s.sol b/script/S04_PerformV2Upgrade.s.sol index 45948b2..5705905 100644 --- a/script/S04_PerformV2Upgrade.s.sol +++ b/script/S04_PerformV2Upgrade.s.sol @@ -10,7 +10,7 @@ import {ProxyAdmin} from 'contracts/misc/access/ProxyAdmin.sol'; import {TransparentUpgradeableProxy} from '@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol'; import {LibString} from 'solady/utils/LibString.sol'; -contract D_PerformV2Upgrade is Script, ForkManagement { +contract S04_PerformV2Upgrade is Script, ForkManagement { // add this to be excluded from coverage report function testLensV1ToV2Upgrade() public {} diff --git a/script/run.sh b/script/run.sh index fb2ba76..3d36185 100644 --- a/script/run.sh +++ b/script/run.sh @@ -77,6 +77,12 @@ if [[ "$CONFIRMATION" == "y" || "$CONFIRMATION" == "Y" ]] NETWORK="maticMumbai" fi + # If $NETWORK is "polygon" change it to "matic" for catapulta + if [[ "$NETWORK" == "polygon" ]] + then + NETWORK="matic" + fi + catapulta script script/$SCRIPT_NAME.s.sol --chain $NETWORK -s $CALLDATA --legacy --skip test --ffi --slow --skip-git exit 0 else