Skip to content

Commit

Permalink
fix: adjust deploy script (bgd-labs#17)
Browse files Browse the repository at this point in the history
* fix: adjust deploy script

* fix: remove console2
  • Loading branch information
sakulstra authored and Rozengarden committed Nov 2, 2023
1 parent 4e94f6f commit 4730d5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion generator/templates/script.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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')
Expand Down

0 comments on commit 4730d5c

Please sign in to comment.