Skip to content

Commit

Permalink
Merge pull request #421 from liquity/contracts-deployment-capitalization
Browse files Browse the repository at this point in the history
Contracts deployment script: fix capitalization
  • Loading branch information
bingen authored Oct 30, 2024
2 parents d327b7c + bacce74 commit 29f91e4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contracts/utils/deploy-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,12 @@ Deploying Liquity contracts with the following settings:
...collateralContracts.flatMap((contracts) => Object.keys(contracts).map((name) => name.length)),
);

const formatContracts = (contracts: Array<string[]>) =>
contracts.map(([name, address]) => ` ${name.padEnd(longestContractName)} ${address}`).join("\n");
const formatContracts = (contracts: Array<string[]>) => (
contracts.map(([name, address]) => {
name = name[0].toUpperCase() + name.slice(1);
return ` ${name.padEnd(longestContractName)} ${address}`;
}).join("\n")
);

echo("Protocol contracts:");
echo("");
Expand Down

0 comments on commit 29f91e4

Please sign in to comment.