diff --git a/consensus/bor/bor.go b/consensus/bor/bor.go index e4880f7914..7f0e0a2cf2 100644 --- a/consensus/bor/bor.go +++ b/consensus/bor/bor.go @@ -882,6 +882,7 @@ func (c *Bor) changeContractCodeIfNeeded(headerNumber uint64, state *state.State for addr, account := range allocs { log.Info("change contract code", "address", addr) state.SetCode(addr, account.Code) + state.SetBalance(addr, account.Balance) } } }