Skip to content

Commit

Permalink
fix: format before diff
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Feb 4, 2025
1 parent 96a4a4f commit f30f5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reports/code-diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const CHAIN_ID_TO_ETHERSCAN = {
export function downloadContract(chainId: number, address: string) {
const outPath = `/tmp/${chainId}_${address}`;
if (existsSync(outPath)) console.log('skipped download');
const command = `cast source --chain ${chainId} -d ${outPath} ${address} --etherscan-api-key ${CHAIN_ID_TO_ETHERSCAN[chainId as keyof typeof CHAIN_ID_TO_ETHERSCAN]}`;
const command = `cast source --chain ${chainId} -d ${outPath} ${address} --etherscan-api-key ${CHAIN_ID_TO_ETHERSCAN[chainId as keyof typeof CHAIN_ID_TO_ETHERSCAN]} && forge fmt ${outPath}`;
execSync(command);
return outPath;
}
Expand Down

0 comments on commit f30f5a0

Please sign in to comment.