mirror of
https://github.com/luxfi/evmgpu.git
synced 2026-10-30 16:57:11 +00:00
15 lines
424 B
Go
15 lines
424 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
package customlogs
|
|
|
|
import ethtypes "github.com/luxfi/geth/core/types"
|
|
|
|
// FlattenLogs converts a nested array of logs to a single array of logs.
|
|
func FlattenLogs(list [][]*ethtypes.Log) []*ethtypes.Log {
|
|
var flat []*ethtypes.Log
|
|
for _, logs := range list {
|
|
flat = append(flat, logs...)
|
|
}
|
|
return flat
|
|
}
|