Explorer: Initialise instruction logs for single line system log (#18777)

This commit is contained in:
Sebastian Bor 2021-07-21 17:52:57 +01:00 committed by GitHub
parent 5f968928ec
commit b867fa154e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -230,6 +230,13 @@ function useSimulator(message: Message) {
}
depth--;
} else {
if (depth === 0) {
instructionLogs.push({
logs: [],
failed: false,
});
depth++;
}
// system transactions don't start with "Program log:"
instructionLogs[instructionLogs.length - 1].logs.push({
prefix: prefixBuilder(depth),