Skip to content

Commit 07a5d87

Browse files
UrsulafeDoozers
authored andcommitted
eth/fetcher, eth/gasestimator: fix typos in comments (ethereum#28675)
1 parent 54f89a6 commit 07a5d87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eth/fetcher/tx_fetcher_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func TestTransactionFetcherWaiting(t *testing.T) {
186186
// waitlist, and none of them are scheduled for retrieval until the wait expires.
187187
//
188188
// This test is an extended version of TestTransactionFetcherWaiting. It's mostly
189-
// to cover the metadata checkes without bloating up the basic behavioral tests
189+
// to cover the metadata checks without bloating up the basic behavioral tests
190190
// with all the useless extra fields.
191191
func TestTransactionFetcherWaitingWithMeta(t *testing.T) {
192192
testTransactionFetcherParallel(t, txFetcherTest{
@@ -1030,7 +1030,7 @@ func TestTransactionFetcherRateLimiting(t *testing.T) {
10301030
}
10311031

10321032
// Tests that if huge transactions are announced, only a small number of them will
1033-
// be requested at a time, to keep the responses below a resonable level.
1033+
// be requested at a time, to keep the responses below a reasonable level.
10341034
func TestTransactionFetcherBandwidthLimiting(t *testing.T) {
10351035
testTransactionFetcherParallel(t, txFetcherTest{
10361036
init: func() *TxFetcher {

eth/gasestimator/gasestimator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type Options struct {
4747
}
4848

4949
// Estimate returns the lowest possible gas limit that allows the transaction to
50-
// run successfully with the provided context optons. It returns an error if the
50+
// run successfully with the provided context options. It returns an error if the
5151
// transaction would always revert, or if there are unexpected failures.
5252
func Estimate(ctx context.Context, call *core.Message, opts *Options, gasCap uint64) (uint64, []byte, error) {
5353
// Binary search the gas limit, as it may need to be higher than the amount used

0 commit comments

Comments
 (0)