mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-11 23:44:27 +00:00
eth/tracers: fix comments (#1247)
This commit is contained in:
parent
7bb2c7793b
commit
c41a96d179
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
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)
|
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 {
|
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) {
|
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)
|
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 {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue