diff --git a/chain/vm/mkactor.go b/chain/vm/mkactor.go index 9e14384cd..d8bc7bca8 100644 --- a/chain/vm/mkactor.go +++ b/chain/vm/mkactor.go @@ -74,10 +74,18 @@ func NewBLSAccountActor(st *state.StateTree, addr address.Address) (*types.Actor } func NewSecp256k1AccountActor(st *state.StateTree, addr address.Address) (*types.Actor, aerrors.ActorError) { + var acstate account.State + acstate.Address = addr + + c, err := st.Store.Put(context.TODO(), &acstate) + if err != nil { + return nil, aerrors.Escalate(err, "serializing account actor state") + } + nact := &types.Actor{ Code: builtin.AccountActorCodeID, Balance: types.NewInt(0), - Head: EmptyObjectCid, + Head: c, } return nact, nil