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 11use fvm_shared:: error:: ExitCode ;
2+ use fvm_shared:: version:: NetworkVersion ;
23
34use super :: error:: Abort ;
45use super :: Context ;
@@ -18,13 +19,12 @@ pub fn abort(
1819 message_len : u32 ,
1920) -> Result < Never , Abort > {
2021 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+ }
2828
2929 let message = if message_len == 0 {
3030 "actor aborted" . to_owned ( )
You can’t perform that action at this time.
0 commit comments