diff --git a/generator/templates/proposal.template.ts b/generator/templates/proposal.template.ts index c2c55a0..16fa03f 100644 --- a/generator/templates/proposal.template.ts +++ b/generator/templates/proposal.template.ts @@ -6,10 +6,11 @@ import {prefixWithPragma} from '../utils/constants'; export const proposalTemplate = ( options: Options, poolConfig: PoolConfig, - pool: PoolIdentifier, + pool: PoolIdentifier ) => { const {title, author, discussion} = options; const chain = getPoolChain(pool); + const folderName = generateFolderName(options); const contractName = generateContractName(options, pool); @@ -23,10 +24,11 @@ export const proposalTemplate = ( * @title ${title || 'TODO'} * @author ${author || 'TODO'} * - discussion: ${discussion || 'TODO'} - * - deploy-command: make run-script contract=src/contracts/updates/${folderName}/${contractName}.sol:${contractName} network=${getChainAlias(chain)} broadcast=false generate_diff=true + * - deploy-command: make run-script contract=src/contracts/updates/${folderName}/${contractName}.sol:${contractName} network=${getChainAlias( + chain + )} broadcast=false generate_diff=true */ - contract ${contractName} is ${`RiskStewards${chain}` - } { + contract ${contractName} is ${`RiskStewards${chain === 'Base' ? 'BaseChain' : chain}`} { function name() public pure override returns (string memory) { return '${contractName}'; }