Skip to content

Commit

Permalink
🐛 fix risk steward import issue (#21)
Browse files Browse the repository at this point in the history
* 🐛 fix issue

* 🐛 avoid using a temp var
  • Loading branch information
MartinGbz authored Dec 3, 2024
1 parent 3a4a6e9 commit a60518c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions generator/templates/proposal.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

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

0 comments on commit a60518c

Please sign in to comment.