Explorer: Show simulation error for Upgrade instruction with none existing buffer (#18838)
This commit is contained in:
parent
7d56fa8363
commit
2f3df8cce0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue