mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
eth/tracers/native: fix possible crash in prestate tracer (#26351)
This commit is contained in:
parent
cda051eba7
commit
fa97788c75
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue