We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf5412 commit 564bc71Copy full SHA for 564bc71
seth/gas.go
@@ -41,7 +41,7 @@ func (m *GasEstimator) Stats(ctx context.Context, blockCount uint64, priorityPer
41
blockCount = currentBlock - 1
42
}
43
44
- hist, err := m.Client.Client.FeeHistory(ctx, blockCount, big.NewInt(int64(currentBlock)), []float64{priorityPerc})
+ hist, err := m.Client.Client.FeeHistory(ctx, blockCount, big.NewInt(mustSafeInt64(currentBlock)), []float64{priorityPerc})
45
if err != nil {
46
return GasSuggestions{}, fmt.Errorf("failed to get fee history: %w", err)
47
0 commit comments