Skip to content

Commit

Permalink
add version to wasm fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Jul 1, 2024
1 parent 083f170 commit fb75949
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wasmsdk/jsbridge/webworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"errors"
"sync"

"github.com/0chain/gosdk/core/version"
"github.com/google/uuid"
"github.com/hack-pad/go-webworkers/worker"
"github.com/hack-pad/safejs"
Expand Down Expand Up @@ -60,7 +61,7 @@ func NewWasmWebWorker(blobberID, blobberURL, clientID, publicKey, privateKey, mn
w := &WasmWebWorker{
Name: blobberURL,
Env: []string{"BLOBBER_URL=" + blobberURL, "CLIENT_ID=" + clientID, "PRIVATE_KEY=" + privateKey, "MODE=worker", "PUBLIC_KEY=" + publicKey, "MNEMONIC=" + mnemonic},
Path: "zcn.wasm",
Path: "zcn.wasm?v=" + version.VERSIONSTR,
subscribers: make(map[string]chan worker.MessageEvent),
}

Expand Down

0 comments on commit fb75949

Please sign in to comment.