From a83f120f3277501db6ee060701d789b4dbe6f1fa Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 9 Feb 2023 11:36:02 -0800 Subject: [PATCH] fix: chain: make sure the head is empty, not the code --- chain/vm/invoker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/vm/invoker.go b/chain/vm/invoker.go index 2dd1f37e6cb..cea17f61dba 100644 --- a/chain/vm/invoker.go +++ b/chain/vm/invoker.go @@ -291,7 +291,7 @@ func DumpActorState(i *ActorRegistry, act *types.Actor, b []byte) (interface{}, um := actInfo.vmActor.State() if um == nil { - if act.Code != EmptyObjectCid { + if act.Head != EmptyObjectCid { return nil, xerrors.Errorf("actor with code %s should only have empty object (%s) as its Head, instead has %s", act.Code, EmptyObjectCid, act.Head) }