fix: avoid returning an error when getting embryo state (#9550)

We need to add full FEVM state support, but that will require merging
master. This is enough for now.

fixes https://github.com/filecoin-project/ref-fvm/issues/1022
This commit is contained in:
Steven Allen 2022-10-26 16:46:59 +01:00 committed by vyzo
parent ea54499f24
commit b3b9da5bbc

View File

@ -284,7 +284,8 @@ func DecodeParams(b []byte, out interface{}) error {
}
func DumpActorState(i *ActorRegistry, act *types.Actor, b []byte) (interface{}, error) {
if builtin.IsAccountActor(act.Code) { // Account code special case
// Account & Embryo code special case
if builtin.IsAccountActor(act.Code) || builtin.IsEmbryo(act.Code) {
return nil, nil
}