Skip to content

Commit

Permalink
add more logs to std in parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Oct 3, 2023
1 parent 9352648 commit 8af2ad5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gas-report/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,16 @@ function saveGasReport(gasReport: GasReport, path: string) {

function readStdIn(): Promise<string> {
return new Promise((resolve) => {
console.log("Waiting for stdin...");
let data = "";

process.stdin.on("data", (chunk) => {
console.log(chunk.toString());
data += chunk;
});

process.stdin.on("end", () => {
console.log("Done waiting for stdin");
resolve(data);
});
});
Expand Down

0 comments on commit 8af2ad5

Please sign in to comment.