Skip to content

Commit eefe7f1

Browse files
committed
eth/tracers: fix mismatched names in comments ethereum#29348
1 parent 12eab8e commit eefe7f1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

eth/tracers/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type testBackend struct {
6262
relHook func() // Hook is invoked when the requested state is released
6363
}
6464

65-
// testBackend creates a new test backend. OBS: After test is done, teardown must be
65+
// newTestBackend creates a new test backend. OBS: After test is done, teardown must be
6666
// invoked in order to release associated resources.
6767
func newTestBackend(t *testing.T, n int, gspec *core.Genesis, generator func(i int, b *core.BlockGen)) *testBackend {
6868
backend := &testBackend{

eth/tracers/internal/tracetest/flat_calltrace_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func testFlatCallTracer(tracerName string, dirPath string, t *testing.T) {
170170
}
171171
}
172172

173-
// jsonEqual is similar to reflect.DeepEqual, but does a 'bounce' via json prior to
173+
// jsonEqualFlat is similar to reflect.DeepEqual, but does a 'bounce' via json prior to
174174
// comparison
175175
func jsonEqualFlat(x, y interface{}) bool {
176176
xTrace := new([]flatCallTrace)

eth/tracers/internal/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func MemoryPtr(m []byte, offset, size int64) []byte {
7575
return nil
7676
}
7777

78-
// Back returns the n'th item in stack
78+
// StackBack returns the n'th item in stack
7979
func StackBack(st []uint256.Int, n int) *uint256.Int {
8080
return &st[len(st)-n-1]
8181
}

eth/tracers/js/tracer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func TestHaltBetweenSteps(t *testing.T) {
197197
}
198198
}
199199

200-
// testNoStepExec tests a regular value transfer (no exec), and accessing the statedb
200+
// TestNoStepExec tests a regular value transfer (no exec), and accessing the statedb
201201
// in 'result'
202202
func TestNoStepExec(t *testing.T) {
203203
execTracer := func(code string) []byte {

eth/tracers/logger/access_list_tracer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (al accessList) equal(other accessList) bool {
8686
return true
8787
}
8888

89-
// accesslist converts the accesslist to a types.AccessList.
89+
// accessList converts the accesslist to a types.AccessList.
9090
func (al accessList) accessList() types.AccessList {
9191
acl := make(types.AccessList, 0, len(al))
9292
for addr, slots := range al {

0 commit comments

Comments
 (0)