Commit 38c5f2f
propagate sierra-emu VM failure as Error from ContractExecutor::Emu
The Emu arm previously called .expect() on VirtualMachine::run, which
aborts the host on any internal VM failure. The Aot arm propagates
errors via Result; align the Emu arm with it.
VirtualMachine::run returns Option<ContractExecutionResult> (None means
"VM never produced a final state"). Convert None to
Error::UnexpectedValue with a descriptive message so callers can decide
how to handle.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 761c5f6 commit 38c5f2f
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | | - | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
0 commit comments