Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

wasm bug fixing #33

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "saito-js",
"version": "0.0.30",
"version": "0.0.31",
"description": "js wrappings around saito-core using wasm",
"scripts": {
"test": "env TS_NODE_PROJECT=\"tsconfig.testing.json\" mocha --require ts-node/register 'tests/**/*.ts'",
Expand Down Expand Up @@ -36,7 +36,7 @@
"morgan": "~1.10.0",
"node-fetch": "^2.6.1",
"process": "^0.11.10",
"saito-wasm": "^0.0.18",
"saito-wasm": "^0.0.19",
"url": "^0.11.0",
"util": "^0.12.5",
"ws": "^8.13.0"
Expand Down
6 changes: 3 additions & 3 deletions saito.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export default class Saito {
peerIndex: bigint,
waitForReply: boolean
): Promise<Uint8Array> {
console.log("saito.sendApiCall : peer = " + peerIndex + " wait for reply = " + waitForReply);
// console.log("saito.sendApiCall : peer = " + peerIndex + " wait for reply = " + waitForReply);
let callbackIndex = this.callbackIndex++;
if (waitForReply) {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -336,7 +336,7 @@ export default class Saito {
await this.sendApiCall(buffer, peerIndex || BigInt(0), !!callback)
.then((buffer: Uint8Array) => {
if (callback) {
console.log("sendTransactionWithCallback. buffer length = " + buffer.byteLength);
// console.log("sendTransactionWithCallback. buffer length = " + buffer.byteLength);

let tx = this.factory.createTransaction();
tx.data = buffer;
Expand All @@ -358,7 +358,7 @@ export default class Saito {
callback?: any,
peerIndex?: bigint
): Promise<any> {
console.log("saito.sendRequest : peer = " + peerIndex);
// console.log("saito.sendRequest : peer = " + peerIndex);
let wallet = await this.getWallet();
let publicKey = await wallet.getPublicKey();
let tx = await this.createTransaction(publicKey, BigInt(0), BigInt(0));
Expand Down