Skip to content

Commit 844e911

Browse files
committed
internal/debug: rename debug_trace to debug_goTrace
Reduces confusion with EVM execution tracing methods.
1 parent 2d7d7ef commit 844e911

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/debug/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ func (h *HandlerT) StopCPUProfile() error {
131131
return nil
132132
}
133133

134-
// Trace turns on tracing for nsec seconds and writes
134+
// GoTrace turns on tracing for nsec seconds and writes
135135
// trace data to file.
136-
func (h *HandlerT) Trace(file string, nsec uint) error {
136+
func (h *HandlerT) GoTrace(file string, nsec uint) error {
137137
if err := h.StartTrace(file); err != nil {
138138
return err
139139
}

internal/web3ext/web3ext.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ web3._extend({
366366
params: 0
367367
}),
368368
new web3._extend.Method({
369-
name: 'trace',
370-
call: 'debug_trace',
369+
name: 'goTrace',
370+
call: 'debug_goTrace',
371371
params: 2
372372
}),
373373
new web3._extend.Method({

0 commit comments

Comments
 (0)