Skip to content

Commit dee4c98

Browse files
authored
eth/tracers/native: fix possible crash in prestate tracer ethereum#26351 (#1313)
1 parent 2834be6 commit dee4c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/tracers/native/prestate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type account struct {
4545
}
4646

4747
func (a *account) exists() bool {
48-
return a.Balance.Sign() != 0 || a.Nonce > 0 || len(a.Code) > 0 || len(a.Storage) > 0
48+
return a.Nonce > 0 || len(a.Code) > 0 || len(a.Storage) > 0 || (a.Balance != nil && a.Balance.Sign() != 0)
4949
}
5050

5151
type accountMarshaling struct {

0 commit comments

Comments
 (0)