Skip to content

Commit

Permalink
fix(swingset-tools): correct transcriptNum when extracting from slog
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Jan 12, 2023
1 parent cafe0e8 commit a163f96
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ async function run() {
vatParameters,
vatSourceBundle,
};
transcriptNum += 1;
// first line of transcript is the source bundle
fs.writeSync(fd, JSON.stringify(t));
fs.writeSync(fd, '\n');
Expand All @@ -72,8 +71,8 @@ async function run() {
}
case 'deliver-result': {
console.log(` -- deliver-result`);
const entry = { transcriptNum, d: delivery, syscalls };
transcriptNum += 1;
const entry = { transcriptNum, d: delivery, syscalls };
fs.writeSync(fd, JSON.stringify(entry));
fs.writeSync(fd, '\n');
break;
Expand All @@ -82,7 +81,6 @@ async function run() {
console.log(' -- heap-snapshot-save');
const { type, snapshotID } = e;
const t = { transcriptNum, type, vatID, snapshotID };
transcriptNum += 1;
fs.writeSync(fd, JSON.stringify(t));
fs.writeSync(fd, '\n');
break;
Expand Down

0 comments on commit a163f96

Please sign in to comment.