tests: fix panic via state test runner using json logger

This commit is contained in:
Martin Holst Swende 2024-03-26 11:53:28 +01:00
parent 14cc967d19
commit 7ad3840c6b
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -295,6 +295,9 @@ func (t *StateTest) RunNoVerify(subtest StateSubtest, vmconfig vm.Config, snapsh
}
evm := vm.NewEVM(context, txContext, st.StateDB, config, vmconfig)
if tracer := vmconfig.Tracer; tracer != nil && tracer.OnTxStart != nil {
tracer.OnTxStart(evm.GetVMContext(), nil, msg.From)
}
// Execute the message.
snapshot := st.StateDB.Snapshot()
gaspool := new(core.GasPool)