fix(t8n): ensure receipt logs is empty slice instead of nil

This commit is contained in:
spencer-tb 2026-02-09 14:27:08 +00:00
parent 250439a011
commit 0240ca87bb

View file

@ -265,6 +265,9 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
gaspool.SetGas(prevGas)
continue
}
if receipt.Logs == nil {
receipt.Logs = []*types.Log{}
}
includedTxs = append(includedTxs, tx)
if hashError != nil {
return nil, nil, nil, NewError(ErrorMissingBlockhash, hashError)