Merge pull request #1648 from filecoin-project/asr/fatal

Elevate an actor construction fail-case to fatal
This commit is contained in:
Łukasz Magiera 2020-04-30 20:44:54 +02:00 committed by GitHub
commit a1bb005b7c

View File

@ -50,8 +50,7 @@ func TryCreateAccountActor(rt *Runtime, addr address.Address) (*types.Actor, aer
p, err := actors.SerializeParams(&addr)
if err != nil {
// TODO: Unsure whether this should be fatal
return nil, aerrors.Absorb(err, exitcode.SysErrInvalidParameters, "registering actor address")
return nil, aerrors.Escalate(err, "couldn't serialize params for actor construction")
}
// call constructor on account