From d9a1d912fd0ca4dce941af14a0bb52f6808c1d5f Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Thu, 30 Apr 2020 13:46:33 -0400 Subject: [PATCH] Elevate an actor construction fail-case to fatal --- chain/vm/mkactor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chain/vm/mkactor.go b/chain/vm/mkactor.go index 5433682eb..c755488be 100644 --- a/chain/vm/mkactor.go +++ b/chain/vm/mkactor.go @@ -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