From c320b0462382cd31e85bdf9ddaac95b86ac6a863 Mon Sep 17 00:00:00 2001 From: Anshal Shukla Date: Tue, 7 Nov 2023 00:49:38 +0530 Subject: [PATCH] fix: set balance in blockalloc --- consensus/bor/bor.go | 1 + 1 file changed, 1 insertion(+) 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) } } }