mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 11:31:02 +00:00
eth/tracers/native: fix possible crash in prestate tracer (#26351)
This commit is contained in:
parent
cda051eba7
commit
fa97788c75
@ -45,7 +45,7 @@ type account struct {
|
||||
}
|
||||
|
||||
func (a *account) exists() bool {
|
||||
return a.Balance.Sign() != 0 || a.Nonce > 0 || len(a.Code) > 0 || len(a.Storage) > 0
|
||||
return a.Nonce > 0 || len(a.Code) > 0 || len(a.Storage) > 0 || (a.Balance != nil && a.Balance.Sign() != 0)
|
||||
}
|
||||
|
||||
type accountMarshaling struct {
|
||||
|
Loading…
Reference in New Issue
Block a user