Skip to content

Commit

Permalink
fix: deploy token in the broadcast part of run
Browse files Browse the repository at this point in the history
  • Loading branch information
stevennevins committed Dec 12, 2024
1 parent de54223 commit 965009a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions contracts/script/HelloWorldDeployer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,19 @@ contract HelloWorldDeployer is Script {
function setUp() public virtual {
deployer = vm.rememberKey(vm.envUint("PRIVATE_KEY"));
vm.label(deployer, "Deployer");

coreDeployment = CoreDeploymentLib.readDeploymentJson("deployments/core/", block.chainid);

}

function run() external {
vm.startBroadcast(deployer);
proxyAdmin = UpgradeableProxyLib.deployProxyAdmin();

token = new ERC20Mock();
helloWorldStrategy = IStrategy(StrategyFactory(coreDeployment.strategyFactory).deployNewStrategy(token));

quorum.strategies.push(
StrategyParams({strategy: helloWorldStrategy, multiplier: 10_000})
);
}

function run() external {
vm.startBroadcast(deployer);
proxyAdmin = UpgradeableProxyLib.deployProxyAdmin();

helloWorldDeployment =
HelloWorldDeploymentLib.deployContracts(proxyAdmin, coreDeployment, quorum);
Expand Down

0 comments on commit 965009a

Please sign in to comment.