Skip to content

Commit

Permalink
fix: check for system errors in the eam (#1045)
Browse files Browse the repository at this point in the history
If we try to exit with a system exit code, we'll get the wrong exit code.
  • Loading branch information
Stebalien authored Jan 13, 2023
1 parent 672d771 commit b82f4d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actors/eam/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ fn resolve_caller_external(rt: &mut impl Runtime) -> Result<(EthAddress, EthAddr
)?;

if !result.exit_code.is_success() {
// TODO: rebase on https://github.com/filecoin-project/builtin-actors/pull/1039
return Err(ActorError::unchecked(
return Err(ActorError::checked(
result.exit_code,
"failed to retrieve account robust address".to_string(),
));
Expand Down

0 comments on commit b82f4d3

Please sign in to comment.