Skip to content

Commit

Permalink
Lint and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh-ukey committed Sep 26, 2024
1 parent 5c43396 commit cb52582
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 141 deletions.

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions script/004_DeploySingleOwnerPlugin.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ contract DeploySingleOwnerPluginScript is Script {
function run() public {
uint256 key = vm.envUint("DEPLOYER_PRIVATE_KEY");
vm.startBroadcast(key);

SingleOwnerPlugin plugin;

// Deploy plugin contract if it doesn't exist at the expected address
Expand All @@ -42,7 +42,7 @@ contract DeploySingleOwnerPluginScript is Script {
// Log plugin manifest hash
console.log("Single owner plugin manifest hash: ");
console.logBytes32(keccak256(abi.encode(plugin.pluginManifest())));

vm.stopBroadcast();
}
}
6 changes: 3 additions & 3 deletions script/007_DeployColdStorageAddressBookPlugin.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract DeployColdStorageAddressBookPluginScript is Script {
function run() public {
uint256 key = vm.envUint("DEPLOYER_PRIVATE_KEY");
vm.startBroadcast(key);

ColdStorageAddressBookPlugin plugin;

// Deploy plugin contract if it doesn't exist at the expected address
Expand All @@ -40,11 +40,11 @@ contract DeployColdStorageAddressBookPluginScript is Script {
plugin = ColdStorageAddressBookPlugin(EXPECTED_PLUGIN_ADDRESS);
console.log("Found existing plugin at expected address: %s", address(plugin));
}

// Log plugin manifest hash
console.log("Cold Storage Address book manifest hash: ");
console.logBytes32(keccak256(abi.encode(plugin.pluginManifest())));

vm.stopBroadcast();
}
}
5 changes: 3 additions & 2 deletions script/011.1_SetUpgradableMSCAFactoryPlugins.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ pragma solidity 0.8.24;
import {UpgradableMSCAFactory} from "../src/msca/6900/v0.7/factories/UpgradableMSCAFactory.sol";
import {Script, console} from "forge-std/src/Script.sol";

// Only needed for MSCA v0.7 factories. This script is the same as 009_SetUpgradableMSCAFactoryPlugins.s.sol, but with the
// Only needed for MSCA v0.7 factories. This script is the same as 009_SetUpgradableMSCAFactoryPlugins.s.sol, but with
// the
// default token callback plugin included).
contract SetUpgradableMSCAFactoryPlugins is Script {
address payable EXPECTED_FACTORY_ADDRESS = payable(vm.envAddress("UPGRADABLE_MSCA_FACTORY_ADDRESS"));
Expand All @@ -38,7 +39,7 @@ contract SetUpgradableMSCAFactoryPlugins is Script {
plugins[1] = vm.envAddress("COLD_STORAGE_ADDRESS_BOOK_PLUGIN_ADDRESS");
plugins[2] = vm.envAddress("WEIGHTED_MULTISIG_PLUGIN_ADDRESS");
plugins[3] = vm.envAddress("DEFAULT_TOKEN_CALLBACK_PLUGIN_ADDRESS");

for (uint256 i = 0; i < numPlugins; i++) {
pluginPermissions[i] = true;
}
Expand Down

0 comments on commit cb52582

Please sign in to comment.