Skip to content

Commit

Permalink
fix: properly indent logs (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Jan 15, 2024
1 parent 4e781d1 commit bfecb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/govv3/checks/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export const checkLogs: ProposalCheck<any> = {
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)}\``);
}
});
}
Expand Down

0 comments on commit bfecb7a

Please sign in to comment.