A couple of translation examples plus todos for Philip

This commit is contained in:
Austin Roberts
2021-08-31 15:51:41 -05:00
parent 820a0af71c
commit 8291edc416
4 changed files with 34 additions and 26 deletions
+1
View File
@@ -8,6 +8,7 @@ import (
"reflect"
)
// TODO (philip): Translate to use core.Tracer instead of vm.Tracer. This will require a wrapper
func GetPluginTracer(pl *plugins.PluginLoader, name string) (func(*state.StateDB)interfaces.TracerResult, bool) {
tracers := pl.Lookup("Tracers", func(item interface{}) bool {
_, ok := item.(*map[string]func(*state.StateDB)interfaces.TracerResult)