StructLogger is an EVM state logger and implements Tracer. StructLogger can capture state based on the given Log configuration and also keeps a track record of modified storage which is used in reporting snapshots of the contract their storage.
| 109 | // a track record of modified storage which is used in reporting snapshots of the |
| 110 | // contract their storage. |
| 111 | type StructLogger struct { |
| 112 | cfg LogConfig |
| 113 | |
| 114 | logs []StructLog |
| 115 | changedValues map[common.Address]Storage |
| 116 | output []byte |
| 117 | err error |
| 118 | } |
| 119 | |
| 120 | // NewStructLogger returns a new logger |
| 121 | func NewStructLogger(cfg *LogConfig) *StructLogger { |
nothing calls this directly
no outgoing calls
no test coverage detected