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

pull/26352/head
Martin Holst Swende 2 years ago committed by GitHub
parent cda051eba7
commit fa97788c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      eth/tracers/native/prestate.go

@ -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…
Cancel
Save