finish wasm watcher engine

This commit is contained in:
Ian Norden
2020-02-27 15:09:20 -06:00
parent 330a083749
commit 8c2a71b16f
17 changed files with 355 additions and 87 deletions
+10
View File
@@ -19,6 +19,8 @@ package shared
import (
"bytes"
"github.com/ethereum/go-ethereum/common"
"github.com/vulcanize/vulcanizedb/pkg/ipfs"
)
@@ -51,3 +53,11 @@ func ListContainsGap(gapList []Gap, gap Gap) bool {
}
return false
}
// HandleNullAddr converts a nil pointer to an address to a zero-valued hex address string
func HandleNullAddr(to *common.Address) string {
if to == nil {
return "0x0000000000000000000000000000000000000000000000000000000000000000"
}
return to.Hex()
}