diff --git a/explorer/src/pages/inspector/SimulatorCard.tsx b/explorer/src/pages/inspector/SimulatorCard.tsx index c55194dad..62b8341d6 100644 --- a/explorer/src/pages/inspector/SimulatorCard.tsx +++ b/explorer/src/pages/inspector/SimulatorCard.tsx @@ -247,6 +247,15 @@ function useSimulator(message: Message) { } }); + // If the instruction's simulation returned an error without any logs then add an empty log entry for Runtime error + // For example BpfUpgradableLoader fails without returning any logs for Upgrade instruction with buffer that doesn't exist + if (instructionError && instructionLogs.length === 0) { + instructionLogs.push({ + logs: [], + failed: true, + }); + } + if ( instructionError && instructionError.index === instructionLogs.length - 1