From e8fb7523a38776f703c95d4220f57476b44be3d4 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 25 Oct 2022 10:52:11 +0100 Subject: [PATCH] fix: avoid returning an error when getting embryo state 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 --- chain/vm/invoker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chain/vm/invoker.go b/chain/vm/invoker.go index ad04639e59e..14a9f858e24 100644 --- a/chain/vm/invoker.go +++ b/chain/vm/invoker.go @@ -288,7 +288,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 }