@@ -45,12 +45,12 @@ func (s Storage) Copy() Storage {
4545
4646// LogConfig are the configuration options for structured logger the EVM
4747type LogConfig struct {
48- DisableMemory bool // disable memory capture
49- DisableStack bool // disable stack capture
50- DisableStorage bool // disable storage capture
51- DisableReturnData bool // disable return data capture
52- Debug bool // print output during capture end
53- Limit int // maximum length of output, but zero means unlimited
48+ EnableMemory bool // enable memory capture
49+ DisableStack bool // disable stack capture
50+ DisableStorage bool // disable storage capture
51+ EnableReturnData bool // enable return data capture
52+ Debug bool // print output during capture end
53+ Limit int // maximum length of output, but zero means unlimited
5454 // Chain overrides, can be used to execute a trace using future fork rules
5555 Overrides ctypes.ChainConfigurator `json:"overrides,omitempty"`
5656}
@@ -159,7 +159,7 @@ func (l *StructLogger) CaptureState(env *EVM, pc uint64, op OpCode, gas, cost ui
159159 }
160160 // Copy a snapshot of the current memory state to a new buffer
161161 var mem []byte
162- if ! l .cfg .DisableMemory {
162+ if ! l .cfg .EnableMemory {
163163 mem = make ([]byte , len (memory .Data ()))
164164 copy (mem , memory .Data ())
165165 }
@@ -198,7 +198,7 @@ func (l *StructLogger) CaptureState(env *EVM, pc uint64, op OpCode, gas, cost ui
198198 storage = l .storage [contract .Address ()].Copy ()
199199 }
200200 var rdata []byte
201- if ! l .cfg .DisableReturnData {
201+ if ! l .cfg .EnableReturnData {
202202 rdata = make ([]byte , len (rData ))
203203 copy (rdata , rData )
204204 }
0 commit comments