diff --git a/client/api_handler.go b/client/api_handler.go index e58c7e1c..6465af86 100644 --- a/client/api_handler.go +++ b/client/api_handler.go @@ -26,8 +26,8 @@ import ( "strings" "time" - "github.com/FISCO-BCOS/go-sdk/conn" - "github.com/FISCO-BCOS/go-sdk/core/types" + "github.com/victor7780/go-sdk/conn" + "github.com/victor7780/go-sdk/core/types" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" diff --git a/client/go_client.go b/client/go_client.go index bbbdb70b..71e37f84 100644 --- a/client/go_client.go +++ b/client/go_client.go @@ -24,10 +24,10 @@ import ( "strconv" "strings" - "github.com/FISCO-BCOS/go-sdk/abi/bind" - "github.com/FISCO-BCOS/go-sdk/conf" - "github.com/FISCO-BCOS/go-sdk/conn" - "github.com/FISCO-BCOS/go-sdk/core/types" + "github.com/victor7780/go-sdk/abi/bind" + "github.com/victor7780/go-sdk/conf" + "github.com/victor7780/go-sdk/conn" + "github.com/victor7780/go-sdk/core/types" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" diff --git a/client/go_client_test.go b/client/go_client_test.go index 7a8e7f0e..81cb2051 100644 --- a/client/go_client_test.go +++ b/client/go_client_test.go @@ -8,9 +8,9 @@ import ( "strings" "testing" - "github.com/FISCO-BCOS/go-sdk/abi" - "github.com/FISCO-BCOS/go-sdk/abi/bind" - "github.com/FISCO-BCOS/go-sdk/conf" + "github.com/victor7780/go-sdk/abi" + "github.com/victor7780/go-sdk/abi/bind" + "github.com/victor7780/go-sdk/conf" "github.com/ethereum/go-ethereum/common" ) diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index 68b52f4f..62032055 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -26,8 +26,8 @@ import ( "regexp" "strings" - "github.com/FISCO-BCOS/go-sdk/abi" - "github.com/FISCO-BCOS/go-sdk/abi/bind" + "github.com/victor7780/go-sdk/abi" + "github.com/victor7780/go-sdk/abi/bind" "github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/common/compiler" "github.com/ethereum/go-ethereum/crypto" diff --git a/cmd/commandline/chain_governance.go b/cmd/commandline/chain_governance.go index ddee13d1..188b56cd 100644 --- a/cmd/commandline/chain_governance.go +++ b/cmd/commandline/chain_governance.go @@ -4,7 +4,7 @@ import ( "fmt" "strconv" - "github.com/FISCO-BCOS/go-sdk/precompiled/chaingovernance" + "github.com/victor7780/go-sdk/precompiled/chaingovernance" "github.com/ethereum/go-ethereum/common" "github.com/spf13/cobra" ) diff --git a/cmd/commandline/cns.go b/cmd/commandline/cns.go index 184792d5..91ffb477 100644 --- a/cmd/commandline/cns.go +++ b/cmd/commandline/cns.go @@ -3,7 +3,7 @@ package commandline import ( "fmt" - "github.com/FISCO-BCOS/go-sdk/precompiled/cns" + "github.com/victor7780/go-sdk/precompiled/cns" "github.com/spf13/cobra" ) diff --git a/cmd/commandline/root.go b/cmd/commandline/root.go index 2cf7433a..b0217fed 100644 --- a/cmd/commandline/root.go +++ b/cmd/commandline/root.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/FISCO-BCOS/go-sdk/client" - "github.com/FISCO-BCOS/go-sdk/conf" + "github.com/victor7780/go-sdk/client" + "github.com/victor7780/go-sdk/conf" "github.com/spf13/cobra" ) diff --git a/cmd/console.go b/cmd/console.go index 23bbc02e..67c72d6e 100644 --- a/cmd/console.go +++ b/cmd/console.go @@ -1,7 +1,7 @@ package main import ( - "github.com/FISCO-BCOS/go-sdk/cmd/commandline" + "github.com/victor7780/go-sdk/cmd/commandline" ) func main() { diff --git a/conn/channel.go b/conn/channel.go index 121bfd83..6262dff7 100644 --- a/conn/channel.go +++ b/conn/channel.go @@ -33,7 +33,7 @@ import ( "time" "github.com/FISCO-BCOS/crypto/tls" - "github.com/FISCO-BCOS/go-sdk/core/types" + "github.com/victor7780/go-sdk/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/google/uuid" diff --git a/conn/connection.go b/conn/connection.go index 69019800..bc33e129 100644 --- a/conn/connection.go +++ b/conn/connection.go @@ -28,7 +28,7 @@ import ( "github.com/FISCO-BCOS/crypto/tls" "github.com/FISCO-BCOS/crypto/x509" - "github.com/FISCO-BCOS/go-sdk/core/types" + "github.com/victor7780/go-sdk/core/types" ) var ( @@ -148,9 +148,9 @@ func (op *requestOp) wait(ctx context.Context, c *Connection) (*jsonrpcMessage, // not affect subsequent interactions with the client. func DialContextHTTP(rawurl string) (*Connection, error) { rawurl = strings.ToLower(rawurl) - if !strings.Contains(rawurl, "http://") { - rawurl = "http://" + rawurl - } + //if !strings.Contains(rawurl, "http://") { + // rawurl = "http://" + rawurl + //} return DialHTTP(rawurl) } diff --git a/go.mod b/go.mod index 99cafe42..59da2797 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/FISCO-BCOS/go-sdk +module github.com/victor7780/go-sdk go 1.18