changes to plugin and commands to accomodate changes

This commit is contained in:
Ian Norden
2019-03-21 18:33:56 -05:00
parent 05c3b9bb48
commit e4e092f542
7 changed files with 70 additions and 25 deletions
+4 -1
View File
@@ -111,6 +111,7 @@ const (
UnknownTransformerType TransformerType = iota
EthEvent
EthStorage
EthGeneric
)
func (pt TransformerType) String() string {
@@ -118,9 +119,10 @@ func (pt TransformerType) String() string {
"Unknown",
"eth_event",
"eth_storage",
"eth_generic",
}
if pt > EthStorage || pt < EthEvent {
if pt > EthGeneric || pt < EthEvent {
return "Unknown"
}
@@ -131,6 +133,7 @@ func GetTransformerType(str string) TransformerType {
types := [...]TransformerType{
EthEvent,
EthStorage,
EthGeneric,
}
for _, ty := range types {