Elevate an actor construction fail-case to fatal

This commit is contained in:
Aayush Rajasekaran 2020-04-30 13:46:33 -04:00
parent f16ae9dffb
commit d9a1d912fd

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