Comparing version 1.0.35 to 1.0.36
@@ -225,3 +225,5 @@ "use strict"; | ||
if (txMsgType) { | ||
return; | ||
return new Promise(function (resolve) { | ||
return resolve(true); | ||
}); | ||
} | ||
@@ -231,2 +233,3 @@ | ||
txMsgType = root.lookupType("rep.protos.Transaction"); | ||
return txMsgType; | ||
}); | ||
@@ -233,0 +236,0 @@ } |
{ | ||
"name": "rclink", | ||
"main": "./lib/index.js", | ||
"version": "1.0.35", | ||
"version": "1.0.36", | ||
"repository": "https://gitee.com/BTAJL/RCNode.git", | ||
@@ -28,2 +28,4 @@ "author": "c4w <“chen4w@sina.com”>", | ||
"jsdoc": "^3.5.5", | ||
"pre-commit": "^1.2.2", | ||
"regenerator-runtime": "^0.12.1", | ||
"rimraf": "^2.6.3" | ||
@@ -45,5 +47,7 @@ }, | ||
"build": "rimraf ./lib && babel ./src -d ./lib --source-maps", | ||
"test": "jest", | ||
"prepublishOnly": "npm run build" | ||
"test": "jest ./test/*", | ||
"prepublishOnly": "npm run build", | ||
"eslint": "eslint ." | ||
}, | ||
"pre-commit": ["eslint"], | ||
"browser": { | ||
@@ -50,0 +54,0 @@ "./lib/restSendTX.js": "./lib/browser/restSendTX.js" |
@@ -23,3 +23,3 @@ import protobuf from "protobufjs"; | ||
// console.log(m); | ||
const ed = new Uint8Array(evt.data); | ||
const ed = Buffer.from(evt.data); | ||
const msg = Message.decode(ed); | ||
@@ -26,0 +26,0 @@ console.log(msg); |
@@ -35,3 +35,3 @@ import protobuf from "protobufjs"; | ||
function: "put_proof", | ||
args: ["{\"testKey50\":\"testVal\"}"], | ||
args: ["{\"testKey1\":\"testVal\"}"], | ||
pubKeyPEM, | ||
@@ -45,3 +45,3 @@ }); | ||
function: "put_proof", | ||
args: ["{\"testKey51\":\"testVal\"}"], | ||
args: ["{\"testKey2\":\"testVal\"}"], | ||
pubKeyPEM, | ||
@@ -48,0 +48,0 @@ }); |
Sorry, the diff of this file is not supported yet
4396082
56876
16