Skip to content

Commit 608dc75

Browse files
committed
Enforce type on LogsFilterFunc
1 parent 7ca7d5b commit 608dc75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/ethkit/block.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ func CheckLogs(block *types.Block, provider *ethrpc.Provider, ignoreZeroGasLogs
307307

308308
// zeroGasLogsFilter removes logs from transactions whose gas price is zero
309309
// (HyperEVM system transactions).
310-
var zeroGasLogsFilter ethutil.LogsFilterFunc = func(ls []types.Log, _ *types.Header, block *types.Block) []types.Log {
310+
var _ ethutil.LogsFilterFunc = zeroGasLogsFilter
311+
312+
func zeroGasLogsFilter(ls []types.Log, _ *types.Header, block *types.Block) []types.Log {
311313
gasPriceByTx := make(map[common.Hash]*big.Int, len(block.Transactions()))
312314
for _, tx := range block.Transactions() {
313315
gasPriceByTx[tx.Hash()] = tx.GasPrice()

0 commit comments

Comments
 (0)