Skip to content

Commit

Permalink
fix: set balance in blockalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
anshalshukla committed Nov 6, 2023
1 parent 738107b commit c320b04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit c320b04

Please sign in to comment.