From e8c80d9acbfb14a0cec6c16db4f3e0a9ad9e1592 Mon Sep 17 00:00:00 2001 From: Lukas Date: Wed, 1 Nov 2023 08:04:42 +0100 Subject: [PATCH] fix: adjust deploy script (#17) * fix: adjust deploy script * fix: remove console2 --- generator/templates/script.template.ts | 3 ++- .../ACIPhaseII_20231029.s.sol | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/generator/templates/script.template.ts b/generator/templates/script.template.ts index d9335673c..8e40a5e15 100644 --- a/generator/templates/script.template.ts +++ b/generator/templates/script.template.ts @@ -70,7 +70,7 @@ export function generateScript(options: Options) { * command: make deploy-ledger contract=src/${folderName}/${fileName}.s.sol:CreateProposal chain=mainnet */ contract CreateProposal is EthereumScript { - function run() external broadcast { + function run() external { // create payloads PayloadsControllerUtils.Payload[] memory payloads = new PayloadsControllerUtils.Payload[](${ Object.keys(poolsToChainsMap).length @@ -93,6 +93,7 @@ contract CreateProposal is EthereumScript { .join('\n')} // create proposal + vm.startBroadcast(); GovV3Helpers.createProposal2_5(payloads, GovV3Helpers.ipfsHashFile(vm, 'src/${folderName}/${ options.shortName }.md')); diff --git a/src/20231029_AaveV3Ethereum_ACIPhaseII/ACIPhaseII_20231029.s.sol b/src/20231029_AaveV3Ethereum_ACIPhaseII/ACIPhaseII_20231029.s.sol index 28e0ad5e9..3248d6160 100644 --- a/src/20231029_AaveV3Ethereum_ACIPhaseII/ACIPhaseII_20231029.s.sol +++ b/src/20231029_AaveV3Ethereum_ACIPhaseII/ACIPhaseII_20231029.s.sol @@ -29,7 +29,7 @@ contract DeployEthereum is EthereumScript { * command: make deploy-ledger contract=src/20231029_AaveV3Ethereum_ACIPhaseII/ACIPhaseII_20231029.s.sol:CreateProposal chain=mainnet */ contract CreateProposal is EthereumScript { - function run() external broadcast { + function run() external { // create payloads PayloadsControllerUtils.Payload[] memory payloads = new PayloadsControllerUtils.Payload[](1); @@ -40,6 +40,7 @@ contract CreateProposal is EthereumScript { payloads[0] = GovV3Helpers.buildMainnetPayload(vm, actionsEthereum); // create proposal + vm.startBroadcast(); GovV3Helpers.createProposal2_5( payloads, GovV3Helpers.ipfsHashFile(vm, 'src/20231029_AaveV3Ethereum_ACIPhaseII/ACIPhaseII.md')