From d265f4a04f55927f9db1baef6a604b3701ff48d3 Mon Sep 17 00:00:00 2001 From: waynewyang Date: Wed, 23 Oct 2019 10:47:45 +0800 Subject: [PATCH] fix method:InitActorState.AddActor --- chain/actors/actor_init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/actors/actor_init.go b/chain/actors/actor_init.go index 0e259f2e2..5cd46957b 100644 --- a/chain/actors/actor_init.go +++ b/chain/actors/actor_init.go @@ -175,7 +175,6 @@ func IsSingletonActor(code cid.Cid) bool { func (ias *InitActorState) AddActor(cst *hamt.CborIpldStore, addr address.Address) (address.Address, error) { nid := ias.NextID - ias.NextID++ amap, err := hamt.LoadNode(context.TODO(), cst, ias.AddressMap) if err != nil { @@ -195,6 +194,7 @@ func (ias *InitActorState) AddActor(cst *hamt.CborIpldStore, addr address.Addres return address.Undef, err } ias.AddressMap = ncid + ias.NextID++ return NewIDAddress(nid) }