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
commit 038686bea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -291,7 +291,7 @@ func DumpActorState(i *ActorRegistry, act *types.Actor, b []byte) (interface{},
um := actInfo.vmActor.State() um := actInfo.vmActor.State()
if um == nil { 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) 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)
} }