File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
use fvm_shared:: error:: ExitCode ;
2
+ use fvm_shared:: version:: NetworkVersion ;
2
3
3
4
use super :: error:: Abort ;
4
5
use super :: Context ;
@@ -18,13 +19,12 @@ pub fn abort(
18
19
message_len : u32 ,
19
20
) -> Result < Never , Abort > {
20
21
let code = ExitCode :: new ( code) ;
21
- // Uncomment to fix https://github.com/filecoin-project/ref-fvm/issues/253
22
- // if code.is_system_error() {
23
- // return Err(Abort::Exit(
24
- // SystemExitCode::ILLEGAL_EXIT_CODE,
25
- // format!("actor aborted with code {}", code),
26
- // ));
27
- // }
22
+ if context. kernel . network_version ( ) >= NetworkVersion :: V16 && code. is_system_error ( ) {
23
+ return Err ( Abort :: Exit (
24
+ ExitCode :: SYS_ILLEGAL_EXIT_CODE ,
25
+ format ! ( "actor aborted with code {}" , code) ,
26
+ ) ) ;
27
+ }
28
28
29
29
let message = if message_len == 0 {
30
30
"actor aborted" . to_owned ( )
You can’t perform that action at this time.
0 commit comments