Unverified Commit fa97788c authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub

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

parent cda051eb
...@@ -45,7 +45,7 @@ type account struct { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment