MCPcopy Create free account
hub / github.com/CPChain/chain / NewStructLogger

Function NewStructLogger

core/vm/logger.go:121–129  ·  view source on GitHub ↗

NewStructLogger returns a new logger

(cfg *LogConfig)

Source from the content-addressed store, hash-verified

119
120// NewStructLogger returns a new logger
121func NewStructLogger(cfg *LogConfig) *StructLogger {
122 logger := &StructLogger{
123 changedValues: make(map[common.Address]Storage),
124 }
125 if cfg != nil {
126 logger.cfg = *cfg
127 }
128 return logger
129}
130
131// CaptureStart implements the Tracer interface to initialize the tracing operation.
132func (l *StructLogger) CaptureStart(from common.Address, to common.Address, create bool, input []byte, gas uint64, value *big.Int) error {

Callers 1

TestStoreCaptureFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestStoreCaptureFunction · 0.68