diff --git a/routes/readWasm.js b/routes/readWasm.js index f048fb40..a2799e94 100644 --- a/routes/readWasm.js +++ b/routes/readWasm.js @@ -10,14 +10,10 @@ router.route("/getWasmData").get(async function (req, res, next) { let wasmData= routerJsClient.getBinary('JsClients/ROUTER/wasm/purse-proxy.wasm'); console.log(wasmData); - //console.log(v8.serialize(wasmData)); - console.log(serialize({ arr : wasmData})); - //JSON.parse(JSON.stringify(wasmData)); - serialize({ arr : wasmData}); + return res.status(200).json({ success: true, message: "Wasm data successfully read and converted. ", - // wasmData: v8.serialize(wasmData), wasmData: serialize({ arr : wasmData}), });