Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Jun 22, 2024
1 parent 15cee4d commit d47907c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions core/types/l2trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ type ExecutionResult struct {
// currently they are just `from` and `to` account
AccountsAfter []*AccountWrapper `json:"accountAfter"`

// `PoseidonCodeHash` only exists when tx is a contract call.
PoseidonCodeHash *common.Hash `json:"poseidonCodeHash,omitempty"`
StructLogs []*StructLogRes `json:"structLogs"`
CallTrace json.RawMessage `json:"callTrace"`
Prestate json.RawMessage `json:"prestate"`
StructLogs []*StructLogRes `json:"structLogs"`
CallTrace json.RawMessage `json:"callTrace"`
}

// StructLogRes stores a structured log emitted by the EVM while replaying a
Expand Down
1 change: 0 additions & 1 deletion rollup/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ func (env *TraceEnv) getTxResult(state *state.StateDB, index int, block *types.B
ReturnValue: fmt.Sprintf("%x", returnVal),
StructLogs: vm.FormatLogs(structLogger.StructLogs()),
CallTrace: callTrace,
Prestate: []byte("{}"),
}
env.TxStorageTraces[index] = txStorageTrace

Expand Down

0 comments on commit d47907c

Please sign in to comment.