Skip to content

Commit

Permalink
Set IsWasm (#1134)
Browse files Browse the repository at this point in the history
* set IsWasm in update alloc

* fix wasm add/replaceblobber

---------

Co-authored-by: Manohar Reddy <b.manu199@gmail.com>
  • Loading branch information
2 people authored and cnlangzi committed Jul 28, 2023
1 parent 62b25f3 commit 5296e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wasmsdk/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func updateAllocationWithRepair(allocationID string,
lock int64,
updateTerms bool,
addBlobberId, removeBlobberId string) (string, error) {

sdk.IsWasm = true
allocationObj, err := sdk.GetAllocation(allocationID)
if err != nil {
return "", err
Expand Down
2 changes: 1 addition & 1 deletion wasmsdk/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ <h2>please download zcn.wasm from https://github.com/0chain/gosdk/releases/lates
var addremoveBlobberIDs = prompt("Add Blobber ID and remove blobberID (separated by a comma): ");

var [addBlobberId, removeBlobberID] = addremoveBlobberIDs.split(",");
removeBlobberID = removeBlobberID !== undefined ? value : "";
// removeBlobberID = removeBlobberID !== undefined ? value : "";

console.log("addBlobberId", addBlobberId)
console.log("removeBlobberID", removeBlobberID)
Expand Down

0 comments on commit 5296e09

Please sign in to comment.