init actor: Fix doubling the balance

This commit is contained in:
Łukasz Magiera 2019-08-15 23:03:47 +02:00
parent 760ebc341f
commit e8faa77d59

View File

@ -106,7 +106,7 @@ func (ia InitActor) Exec(act *types.Actor, vmctx types.VMContext, p *ExecParams)
// Set up the actor itself
actor := types.Actor{
Code: p.Code,
Balance: vmctx.Message().Value,
Balance: types.NewInt(0),
Head: EmptyCBOR,
Nonce: 0,
}