19
19
pragma solidity 0.8.24 ;
20
20
21
21
import {UpgradableMSCAFactory} from "../src/msca/6900/v0.7/factories/UpgradableMSCAFactory.sol " ;
22
+
23
+ import {
24
+ COLD_STORAGE_ADDRESS_BOOK_PLUGIN_ADDRESS,
25
+ DEFAULT_TOKEN_CALLBACK_PLUGIN_ADDRESS,
26
+ SINGLE_OWNER_PLUGIN_ADDRESS,
27
+ UPGRADABLE_MSCA_FACTORY_ADDRESS,
28
+ WEIGHTED_MULTISIG_PLUGIN_ADDRESS
29
+ } from "./000_ContractAddress.sol " ;
22
30
import {Script, console} from "forge-std/src/Script.sol " ;
23
31
24
32
// Only needed for MSCA v0.7 factories. This script is the same as 009_SetUpgradableMSCAFactoryPlugins.s.sol, but with
25
33
// the
26
34
// default token callback plugin included).
27
35
contract SetUpgradableMSCAFactoryPlugins is Script {
28
- address payable EXPECTED_FACTORY_ADDRESS = payable (vm. envAddress ( " UPGRADABLE_MSCA_FACTORY_ADDRESS " ) );
36
+ address payable EXPECTED_FACTORY_ADDRESS = payable (UPGRADABLE_MSCA_FACTORY_ADDRESS);
29
37
30
38
function run () public {
31
39
uint256 key = vm.envUint ("MSCA_FACTORY_OWNER_PRIVATE_KEY " );
@@ -35,10 +43,10 @@ contract SetUpgradableMSCAFactoryPlugins is Script {
35
43
address [] memory plugins = new address [](numPlugins);
36
44
bool [] memory pluginPermissions = new bool [](numPlugins);
37
45
38
- plugins[0 ] = vm. envAddress ( " SINGLE_OWNER_PLUGIN_ADDRESS " ) ;
39
- plugins[1 ] = vm. envAddress ( " COLD_STORAGE_ADDRESS_BOOK_PLUGIN_ADDRESS " ) ;
40
- plugins[2 ] = vm. envAddress ( " WEIGHTED_MULTISIG_PLUGIN_ADDRESS " ) ;
41
- plugins[3 ] = vm. envAddress ( " DEFAULT_TOKEN_CALLBACK_PLUGIN_ADDRESS " ) ;
46
+ plugins[0 ] = SINGLE_OWNER_PLUGIN_ADDRESS;
47
+ plugins[1 ] = COLD_STORAGE_ADDRESS_BOOK_PLUGIN_ADDRESS;
48
+ plugins[2 ] = WEIGHTED_MULTISIG_PLUGIN_ADDRESS;
49
+ plugins[3 ] = DEFAULT_TOKEN_CALLBACK_PLUGIN_ADDRESS;
42
50
43
51
for (uint256 i = 0 ; i < numPlugins; i++ ) {
44
52
pluginPermissions[i] = true ;
0 commit comments