Elevate an actor construction fail-case to fatal
This commit is contained in:
parent
f16ae9dffb
commit
d9a1d912fd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user