Merge pull request #10225 from filecoin-project/steb/fix-actor-state-check

fix: chain: make sure the head is empty, not the code
This commit is contained in:
Aayush Rajasekaran
2023-02-09 14:51:46 -05:00
committed by GitHub
+1 -1
View File
@@ -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)
}