Skip to content

Commit a00dee5

Browse files
author
Jayash
committed
Update gosdk
1 parent d3488a4 commit a00dee5

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

code/go/0chain.net/blobbercore/handler/tests_common_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"bytes"
88
"encoding/json"
99
"errors"
10+
coreNetwork "github.com/0chain/gosdk/core/conf"
1011
"io"
1112
"mime/multipart"
1213
"net/http"
@@ -30,7 +31,7 @@ func setup(t *testing.T) {
3031
if err != nil {
3132
t.Fatal(err)
3233
}
33-
if err := zcncore.SetWalletInfo(string(wBlob), true); err != nil {
34+
if err := zcncore.SetWalletInfo(string(wBlob), "bls0chain", true); err != nil {
3435
t.Fatal(err)
3536
}
3637

@@ -41,10 +42,10 @@ func setup(t *testing.T) {
4142
},
4243
),
4344
)
44-
server := httptest.NewServer(
45+
_ = httptest.NewServer(
4546
http.HandlerFunc(
4647
func(w http.ResponseWriter, r *http.Request) {
47-
n := zcncore.Network{Miners: []string{"miner 1"}, Sharders: []string{sharderServ.URL}}
48+
n := coreNetwork.Network{Miners: []string{"miner 1"}, Sharders: []string{sharderServ.URL}}
4849
blob, err := json.Marshal(n)
4950
if err != nil {
5051
t.Fatal(err)
@@ -57,9 +58,9 @@ func setup(t *testing.T) {
5758
),
5859
)
5960

60-
if err := zcncore.InitZCNSDK(server.URL, "ed25519"); err != nil {
61-
t.Fatal(err)
62-
}
61+
//if err := zcncore.InitZCNSDK(server.URL, "ed25519"); err != nil {
62+
// t.Fatal(err)
63+
//}
6364
}
6465

6566
type MockFileStore struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.23.2
66

77
require (
88
github.com/0chain/errors v1.0.3
9-
github.com/0chain/gosdk v1.17.10-0.20241008205856-079a9f3a4df0
9+
github.com/0chain/gosdk v1.17.10-0.20241009190345-06eb4396c862
1010
github.com/DATA-DOG/go-sqlmock v1.5.0
1111
github.com/didip/tollbooth/v6 v6.1.2
1212
github.com/go-openapi/runtime v0.26.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565 h1:z+DtCR8mBsjPnEs
4040
github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565/go.mod h1:UyDC8Qyl5z9lGkCnf9RHJPMektnFX8XtCJZHXCCVj8E=
4141
github.com/0chain/errors v1.0.3 h1:QQZPFxTfnMcRdt32DXbzRQIfGWmBsKoEdszKQDb0rRM=
4242
github.com/0chain/errors v1.0.3/go.mod h1:xymD6nVgrbgttWwkpSCfLLEJbFO6iHGQwk/yeSuYkIc=
43-
github.com/0chain/gosdk v1.17.10-0.20241008205856-079a9f3a4df0 h1:h01fF+5EppvprlFtppa1TvTIkEh/rNCqVlcL9ZPTukU=
44-
github.com/0chain/gosdk v1.17.10-0.20241008205856-079a9f3a4df0/go.mod h1:0c7hAFSLMyMbzzhX6nkT77GAW31dYLqqqjKcMJa5G9w=
43+
github.com/0chain/gosdk v1.17.10-0.20241009190345-06eb4396c862 h1:4LXNe7X1Dj+U7FTir6vMlrtEz81k3PhhHiYkgTlbOeU=
44+
github.com/0chain/gosdk v1.17.10-0.20241009190345-06eb4396c862/go.mod h1:0c7hAFSLMyMbzzhX6nkT77GAW31dYLqqqjKcMJa5G9w=
4545
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
4646
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
4747
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=

0 commit comments

Comments
 (0)