diff --git a/explorer/src/pages/inspector/SimulatorCard.tsx b/explorer/src/pages/inspector/SimulatorCard.tsx index 18021305d5..c55194dad3 100644 --- a/explorer/src/pages/inspector/SimulatorCard.tsx +++ b/explorer/src/pages/inspector/SimulatorCard.tsx @@ -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),