fix: Scripts renaming and catapulta network

Co-authored-by: Victor Naumik <vicnaum@gmail.com>
This commit is contained in:
donosonaumczuk
2023-11-01 16:59:55 -03:00
parent a1a1a45fe7
commit 4e846b1239
4 changed files with 9 additions and 3 deletions

View File

@@ -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);

View File

@@ -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 {}

View File

@@ -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 {}

View File

@@ -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