Skip to content

Commit ce54b6a

Browse files
authored
Merge pull request #4 from openrelayxyz/bugfix/missing-state-transition-injection
Added missing injection in core/state-transition.go
2 parents 3c5966a + b182d63 commit ce54b6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/state_transition.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,13 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
289289
// 6. caller has enough balance to cover asset transfer for **topmost** call
290290

291291
// Check clauses 1-3, buy gas if everything is correct
292+
293+
// begin PluGeth injection
294+
if v, ok := st.evm.Config.Tracer.(PreTracer); ok {
295+
v.CapturePreStart(st.msg.From(), st.msg.To(), st.data, st.gas, st.msg.Value())
296+
}
297+
// end PluGeth injection
298+
292299
if err := st.preCheck(); err != nil {
293300
return nil, err
294301
}

0 commit comments

Comments
 (0)