OSDN Git Service

Fix: fix import url
authorjacksoom <lifengliu1994@gmail.com>
Mon, 3 Aug 2020 08:45:27 +0000 (16:45 +0800)
committerjacksoom <lifengliu1994@gmail.com>
Mon, 3 Aug 2020 08:45:27 +0000 (16:45 +0800)
equity/compiler/cmd/equitycmd/equitycmd.go
mining/tensority/cgo_algorithm/algorithm_simd.go

index c2ce66e..cc47b28 100644 (file)
@@ -13,7 +13,7 @@ import (
 
 var (
        // generateInstPath is the directory (need to combine with GOPATH) for store generated contract instance
-       generateInstPath = "/src/github.com/bytom/equity/instance/"
+       generateInstPath = "/src/github.com/bytom/bytom/equity/instance/"
 )
 
 func main() {
@@ -63,11 +63,11 @@ func main() {
        fmt.Fprintf(header, "package instance\n\n")
 
        imports := map[string]bool{
-               "bytes":                        true,
-               "encoding/hex":                 true,
-               "fmt":                          true,
-               "github.com/bytom/equity/compiler":   true,
-               "github.com/bytom/protocol/vm": true,
+               "bytes":                                  true,
+               "encoding/hex":                           true,
+               "fmt":                                    true,
+               "github.com/bytom/bytom/equity/compiler": true,
+               "github.com/bytom/bytom/protocol/vm":     true,
        }
 
        buf := new(bytes.Buffer)
@@ -254,7 +254,7 @@ func asGoParams(params []*compiler.Param) (goParams string, imports []string) {
                        typ = "uint64"
                case "Asset":
                        typ = "bc.AssetID"
-                       imports = append(imports, "github.com/bytom/protocol/bc")
+                       imports = append(imports, "github.com/bytom/bytom/protocol/bc")
                        strFlag = true
                case "Boolean":
                        typ = "bool"
@@ -268,7 +268,7 @@ func asGoParams(params []*compiler.Param) (goParams string, imports []string) {
                        strFlag = true
                case "PublicKey":
                        typ = "ed25519.PublicKey"
-                       imports = append(imports, "github.com/bytom/crypto/ed25519")
+                       imports = append(imports, "github.com/bytom/bytom/crypto/ed25519")
                        strFlag = true
                case "Signature":
                        typ = "[]byte"
@@ -281,7 +281,7 @@ func asGoParams(params []*compiler.Param) (goParams string, imports []string) {
        }
 
        if strFlag {
-               imports = append(imports, "github.com/bytom/encoding/json")
+               imports = append(imports, "github.com/bytom/bytom/encoding/json")
        }
        return strings.Join(strs, ", "), imports
 }
index 29591d8..cdecf7c 100644 (file)
@@ -12,7 +12,7 @@ import "C"
 import (
        "unsafe"
 
-       "github.com/bytom/protocol/bc"
+       "github.com/bytom/bytom/protocol/bc"
 )
 
 func SimdAlgorithm(bh, seed *bc.Hash) *bc.Hash {