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 // Set up the actor itself
actor := types.Actor{ actor := types.Actor{
Code: p.Code, Code: p.Code,
Balance: vmctx.Message().Value, Balance: types.NewInt(0),
Head: EmptyCBOR, Head: EmptyCBOR,
Nonce: 0, Nonce: 0,
} }