Skip to content

Commit

Permalink
fix: avoid returning an error when getting embryo state
Browse files Browse the repository at this point in the history
We need to add full FEVM state support, but that will require merging
master. This is enough for now.

fixes filecoin-project/ref-fvm#1022
  • Loading branch information
Stebalien committed Oct 25, 2022
1 parent 9295ec1 commit e8fb752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chain/vm/invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e8fb752

Please # to comment.