Skip to content

Commit 655bacd

Browse files
committed
change cdn and wasm path
1 parent d4d99f5 commit 655bacd

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

.github/workflows/build-sdks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Go 1.22
2828
uses: actions/setup-go@v3
2929
with:
30-
go-version: 1.22
30+
go-version: 1.22.5
3131

3232
- name: Clean build
3333
run: make clean-mobilesdk
@@ -99,7 +99,7 @@ jobs:
9999
- name: Set up Go 1.22
100100
uses: actions/setup-go@v3
101101
with:
102-
go-version: 1.22
102+
go-version: 1.22.5
103103

104104
- name: Install deps
105105
run: |
@@ -202,7 +202,7 @@ jobs:
202202
- name: Set up Go 1.22
203203
uses: actions/setup-go@v3
204204
with:
205-
go-version: 1.22
205+
go-version: 1.22.5
206206

207207
- name: Clean build
208208
run: make clean-mobilesdk
@@ -274,7 +274,7 @@ jobs:
274274
- name: Set up Go 1.22
275275
uses: actions/setup-go@v3
276276
with:
277-
go-version: 1.22
277+
go-version: 1.22.5
278278

279279
- name: Install deps
280280
run: |
@@ -338,7 +338,7 @@ jobs:
338338
- name: Set up Go 1.x
339339
uses: actions/setup-go@v3
340340
with:
341-
go-version: 1.21.5
341+
go-version: 1.22.5
342342

343343
- name: Checkout
344344
uses: actions/checkout@v2

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Go 1.x
2727
uses: actions/setup-go@v3
2828
with:
29-
go-version: 1.21.5
29+
go-version: 1.22.5
3030

3131
- uses: actions/checkout@v3
3232

@@ -51,7 +51,7 @@ jobs:
5151
- name: Set up Go 1.x
5252
uses: actions/setup-go@v3
5353
with:
54-
go-version: 1.21.5
54+
go-version: 1.22.5
5555

5656
- name: Install deps
5757
run: |
@@ -170,7 +170,7 @@ jobs:
170170
- name: Set up Go 1.x
171171
uses: actions/setup-go@v3
172172
with:
173-
go-version: 1.21.5
173+
go-version: 1.22.5
174174

175175
- uses: actions/setup-node@v2
176176
with:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/0chain/gosdk
22

3-
go 1.21
3+
go 1.22.5
44

55
require (
66
github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565

wasmsdk/jsbridge/template_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func buildJS(args, env []string, wasmPath string, tpl []byte) (string, error) {
5151
if suffix == "" {
5252
suffix = "dev"
5353
}
54-
cdnPath := fmt.Sprintf("https://d2os1u2xwjukgr.cloudfront.net/%s/zcn.wasm", suffix)
54+
cdnPath := fmt.Sprintf("https://webapps-staticfiles.s3.us-east-2.amazonaws.com/%s/enterprise-zcn.wasm", suffix)
5555
data := templateData{
5656
Path: cdnPath,
5757
Args: args,

wasmsdk/jsbridge/webworker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func NewWasmWebWorker(blobberID, blobberURL, clientID, clientKey, peerPublicKey,
8181
"IS_SPLIT=" + strconv.FormatBool(isSplit),
8282
"MNEMONIC=" + mnemonic,
8383
"ZAUTH_SERVER=" + gZauthServer},
84-
Path: "zcn.wasm",
84+
Path: "enterprise-zcn.wasm",
8585
subscribers: make(map[string]chan worker.MessageEvent),
8686
}
8787

wasmsdk/jsbridge/zcnworker.js.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.21.5/misc/wasm/wasm_exec.js','https://cdn.jsdelivr.net/gh/herumi/[email protected]/browser/bls.js');
1+
importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.22.5/misc/wasm/wasm_exec.js','https://cdn.jsdelivr.net/gh/herumi/[email protected]/browser/bls.js');
22

33
const go = new Go();
44
go.argv = {{.ArgsToJS}}

wasmsdk/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ func main() {
350350
}
351351

352352
if mode != "" {
353+
fmt.Println("enterprise wasm sdk")
353354
respChan := make(chan string, 1)
354355
jsProxy := window.Get("__zcn_worker_wasm__")
355356
if !(jsProxy.IsNull() || jsProxy.IsUndefined()) {

0 commit comments

Comments
 (0)