eth/tracers/native: fix possible crash in prestate tracer (#26351)

This commit is contained in:
Martin Holst Swende 2022-12-13 08:32:29 -05:00 committed by GitHub
parent cda051eba7
commit fa97788c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ type account struct {
} }
func (a *account) exists() bool { 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 { type accountMarshaling struct {