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) p, err := actors.SerializeParams(&addr)
if err != nil { if err != nil {
// TODO: Unsure whether this should be fatal return nil, aerrors.Escalate(err, "couldn't serialize params for actor construction")
return nil, aerrors.Absorb(err, exitcode.SysErrInvalidParameters, "registering actor address")
} }
// call constructor on account // call constructor on account