diff --git a/generateMarkdown.js b/generateMarkdown.js index f0662c0..1bfa5d2 100644 --- a/generateMarkdown.js +++ b/generateMarkdown.js @@ -247,11 +247,10 @@ function generateDeploymentHistory(history, latest, chainId) { Deployed contracts: - - ${contractInfos + ${contractInfos.length > 1 ? `- `: ``}${contractInfos .map( - ({ contract, contractName }) => ` -
- ${contractName.replace(/([A-Z])/g, " $1").trim()}${ contract.proxyType @@ -268,15 +267,15 @@ function generateDeploymentHistory(history, latest, chainId) { "tx", )}">Initialization Txn)` : `` - } - ${ + } + ${ Object.keys(contract.input.constructor).length - ? ` + ? ` - - - - + + + + ${Object.entries(contract.input.constructor) .map( ([key, value]) => ` @@ -298,10 +297,9 @@ function generateDeploymentHistory(history, latest, chainId) { ` : `` } - - `, + ${Object.keys(contract.input.constructor).length ? ``: ``}`, ) - .join("\n- ")} + .join("\n - ")} `, ) .join("\n\n");
ParameterValue
ParameterValue