From c5d3b979cbbf61d4c686fe2a1da2bdfb2242d8ea Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 21 Jan 2021 11:24:05 -0800 Subject: [PATCH] fix constructing new actors --- chain/vm/mkactor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chain/vm/mkactor.go b/chain/vm/mkactor.go index 885d3c0db..072711db6 100644 --- a/chain/vm/mkactor.go +++ b/chain/vm/mkactor.go @@ -12,6 +12,7 @@ import ( builtin0 "github.com/filecoin-project/specs-actors/actors/builtin" builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin" + builtin3 "github.com/filecoin-project/specs-actors/v3/actors/builtin" "github.com/filecoin-project/go-address" "github.com/filecoin-project/lotus/chain/actors/aerrors" @@ -91,6 +92,8 @@ func newAccountActor(ver actors.Version) *types.Actor { code = builtin0.AccountActorCodeID case actors.Version2: code = builtin2.AccountActorCodeID + case actors.Version3: + code = builtin3.AccountActorCodeID default: panic("unsupported actors version") }