Explorer: Show simulation error for Upgrade instruction with none existing buffer (#18838)
This commit is contained in:
@ -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 (
|
if (
|
||||||
instructionError &&
|
instructionError &&
|
||||||
instructionError.index === instructionLogs.length - 1
|
instructionError.index === instructionLogs.length - 1
|
||||||
|
Reference in New Issue
Block a user