Skip to content

Commit

Permalink
update changset config + refactor zcn.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuvssut committed May 9, 2024
1 parent c6e410e commit 6f8215f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["zus-sdk-test"]
"ignore": ["website"]
}
3 changes: 0 additions & 3 deletions lib/js-sdk/src/zcn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@ async function blsSign(hash: string) {

const bytes = hexStringToByte(hash);

console.log("bridge.jsProxy.secretKey", bridge.jsProxy.secretKey);
const sig = bridge.jsProxy.secretKey.sign(bytes);
console.log("sig", sig);

if (!sig) {
const errMsg = "err: wasm blsSign function failed to sign transaction";
console.warn(errMsg);
throw new Error(errMsg);
}

console.log("sig.serializeToHexStr()", sig.serializeToHexStr());
return sig.serializeToHexStr() as string;
}

Expand Down
40 changes: 24 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4392,6 +4392,13 @@ __metadata:
languageName: node
linkType: hard

"notyf@npm:^3.10.0":
version: 3.10.0
resolution: "notyf@npm:3.10.0"
checksum: 10/52918b9c9eab64814d2b7e6bf576ff21eb226b307919e306382e9b02f59701c1139d9276434e67d7e2a99e9f2cf6aecef663c23140d1ef3f695550adc75c5c7a
languageName: node
linkType: hard

"npm-run-path@npm:^4.0.1":
version: 4.0.1
resolution: "npm-run-path@npm:4.0.1"
Expand Down Expand Up @@ -6463,6 +6470,23 @@ __metadata:
languageName: node
linkType: hard

"website@workspace:example/webapp":
version: 0.0.0-use.local
resolution: "website@workspace:example/webapp"
dependencies:
babel-loader: "npm:^9.1.2"
concurrently: "npm:^8.2.2"
include-media: "npm:^2.0.0"
mime: "npm:^3.0.0"
notyf: "npm:^3.10.0"
sass: "npm:^1.60.0"
webpack: "npm:^5.75.0"
webpack-cli: "npm:^5.0.1"
webpack-dev-server: "npm:^5.0.4"
webpack-watch-files-plugin: "npm:^1.2.1"
languageName: unknown
linkType: soft

"websocket-driver@npm:>=0.5.1, websocket-driver@npm:^0.7.4":
version: 0.7.4
resolution: "websocket-driver@npm:0.7.4"
Expand Down Expand Up @@ -6738,19 +6762,3 @@ __metadata:
concurrently: "npm:^8.2.2"
languageName: unknown
linkType: soft

"zus-sdk-test@workspace:example/webapp":
version: 0.0.0-use.local
resolution: "zus-sdk-test@workspace:example/webapp"
dependencies:
babel-loader: "npm:^9.1.2"
concurrently: "npm:^8.2.2"
include-media: "npm:^2.0.0"
mime: "npm:^3.0.0"
sass: "npm:^1.60.0"
webpack: "npm:^5.75.0"
webpack-cli: "npm:^5.0.1"
webpack-dev-server: "npm:^5.0.4"
webpack-watch-files-plugin: "npm:^1.2.1"
languageName: unknown
linkType: soft

0 comments on commit 6f8215f

Please sign in to comment.