From 9c62246bee7cf0470043b720baff757870e0258d Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 07:07:51 +0000 Subject: [PATCH 01/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=AA=E8=83=BD?= =?UTF-8?q?=E8=AF=B7=E6=B1=82http=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conn/connection.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conn/connection.go b/conn/connection.go index 69019800..45e73049 100644 --- a/conn/connection.go +++ b/conn/connection.go @@ -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) } From 97690d87466bb0d05bb43166b94959e7e9a40129 Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:16:22 +0800 Subject: [PATCH 02/12] Update go_client.go --- client/go_client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" From 664fdaa0f140f269c7b0a93080274ca22ee8bc2e Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:17:05 +0800 Subject: [PATCH 03/12] Update go_client_test.go --- client/go_client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" ) From d79476464b832c3ea94d1ebeeb06447f244a4be4 Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:17:30 +0800 Subject: [PATCH 04/12] Update api_handler.go --- client/api_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" From 0d498fcf5ced6c04200e46037cdeb222fafcdb08 Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:20:35 +0800 Subject: [PATCH 05/12] Update console.go --- cmd/console.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { From a0753386e745ca979bd27390fe1ab206c1b19a28 Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:21:03 +0800 Subject: [PATCH 06/12] Update main.go --- cmd/abigen/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" From 4a4061a3f5d3cfbb5a159e836e37766ac108918d Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:21:35 +0800 Subject: [PATCH 07/12] Update root.go --- cmd/commandline/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ) From d784b203023c12f758031ec5558c4ecd3b56790b Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:21:52 +0800 Subject: [PATCH 08/12] Update chain_governance.go --- cmd/commandline/chain_governance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) From 284216758a2e20630ce3dfcebaa31abd13158a3b Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:22:09 +0800 Subject: [PATCH 09/12] Update cns.go --- cmd/commandline/cns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) From 3f1eb8a7d4482a688e7bdf207fffc48512f95607 Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:23:17 +0800 Subject: [PATCH 10/12] Update connection.go --- conn/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn/connection.go b/conn/connection.go index 45e73049..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 ( From 138514eaf844da523020b37f9b3a373fe704c8b2 Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:23:41 +0800 Subject: [PATCH 11/12] Update channel.go --- conn/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From f7da80282151893b2fb0630bb2c07840e68f2bed Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 23:25:27 +0800 Subject: [PATCH 12/12] Update go.mod --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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