eth/tracers: fix comments (#1247)

This commit is contained in:
Daniel Liu 2025-07-26 17:46:15 +08:00 committed by GitHub
parent 7bb2c7793b
commit c41a96d179
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -289,7 +289,7 @@ func TestRegressionPanicSlice(t *testing.T) {
}
}
// TestRegressionPanicSlice tests that we don't panic on bad arguments to stack peeks
// TestRegressionPanicPeek tests that we don't panic on bad arguments to stack peeks
func TestRegressionPanicPeek(t *testing.T) {
tracer, err := New("{depths: [], step: function(log) { this.depths.push(log.stack.peek(-1)); }, fault: function() {}, result: function() { return this.depths; }}", new(Context), nil)
if err != nil {
@ -300,7 +300,7 @@ func TestRegressionPanicPeek(t *testing.T) {
}
}
// TestRegressionPanicSlice tests that we don't panic on bad arguments to memory getUint
// TestRegressionPanicGetUint tests that we don't panic on bad arguments to memory getUint
func TestRegressionPanicGetUint(t *testing.T) {
tracer, err := New("{ depths: [], step: function(log, db) { this.depths.push(log.memory.getUint(-64));}, fault: function() {}, result: function() { return this.depths; }}", new(Context), nil)
if err != nil {