From bfecb7a8b678df6af405624ac207978f6f00f30a Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 15 Jan 2024 17:13:23 +0100 Subject: [PATCH] fix: properly indent logs (#93) --- src/govv3/checks/logs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/govv3/checks/logs.ts b/src/govv3/checks/logs.ts index 28562c1..fb1e4cb 100644 --- a/src/govv3/checks/logs.ts +++ b/src/govv3/checks/logs.ts @@ -32,11 +32,11 @@ export const checkLogs: ProposalCheck = { if (Boolean(log.name)) { // Log is decoded, format data as: VotingDelaySet(oldVotingDelay: value, newVotingDelay: value) const parsedInputs = log.inputs?.map((i) => `${i.soltype!.name}: ${i.value}`).join(', '); - info.push(`- \`${log.name}(${parsedInputs || ''})\``); + info.push(` - \`${log.name}(${parsedInputs || ''})\``); } else { // Log is not decoded, report the raw data // TODO find a transaction with undecoded logs to know how topics/data are formatted in simulation response - info.push(`- Undecoded log: \`${JSON.stringify(log)}\``); + info.push(` - Undecoded log: \`${JSON.stringify(log)}\``); } }); }