File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
code/go/0chain.net/blobbercore/handler Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 7
7
"bytes"
8
8
"encoding/json"
9
9
"errors"
10
+ coreNetwork "github.com/0chain/gosdk/core/conf"
10
11
"io"
11
12
"mime/multipart"
12
13
"net/http"
@@ -30,7 +31,7 @@ func setup(t *testing.T) {
30
31
if err != nil {
31
32
t .Fatal (err )
32
33
}
33
- if err := zcncore .SetWalletInfo (string (wBlob ), true ); err != nil {
34
+ if err := zcncore .SetWalletInfo (string (wBlob ), "bls0chain" , true ); err != nil {
34
35
t .Fatal (err )
35
36
}
36
37
@@ -41,10 +42,10 @@ func setup(t *testing.T) {
41
42
},
42
43
),
43
44
)
44
- server : = httptest .NewServer (
45
+ _ = httptest .NewServer (
45
46
http .HandlerFunc (
46
47
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 }}
48
49
blob , err := json .Marshal (n )
49
50
if err != nil {
50
51
t .Fatal (err )
@@ -57,9 +58,9 @@ func setup(t *testing.T) {
57
58
),
58
59
)
59
60
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
+ // }
63
64
}
64
65
65
66
type MockFileStore struct {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ toolchain go1.23.2
6
6
7
7
require (
8
8
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
10
10
github.com/DATA-DOG/go-sqlmock v1.5.0
11
11
github.com/didip/tollbooth/v6 v6.1.2
12
12
github.com/go-openapi/runtime v0.26.0
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565 h1:z+DtCR8mBsjPnEs
40
40
github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565 /go.mod h1:UyDC8Qyl5z9lGkCnf9RHJPMektnFX8XtCJZHXCCVj8E =
41
41
github.com/0chain/errors v1.0.3 h1:QQZPFxTfnMcRdt32DXbzRQIfGWmBsKoEdszKQDb0rRM =
42
42
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 =
45
45
github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
46
46
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 /go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo =
47
47
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60 =
You can’t perform that action at this time.
0 commit comments