Comparing version 0.0.3 to 0.0.4
@@ -14,5 +14,5 @@ const m = require('../utils/Makers.js') | ||
m.Client(name, chainId, k.ports, k.discovery, true).then(res=>{ | ||
let path = `.chainData/${name}/./MEC.ipc` | ||
let path = `.chainDatcd a/${name}/./MEC.ipc` | ||
k.ipc[name] = s.setIpcProvider(path) | ||
c.connectConsortium( | ||
nodec.connectConsortium( | ||
c.consortium_params( | ||
@@ -19,0 +19,0 @@ s.enode(name), |
@@ -7,2 +7,3 @@ const startLayer = require('./function/startChain.js'); | ||
const init = startLayer.init; | ||
const utils = require('./utils/utils.js') | ||
@@ -13,2 +14,3 @@ module.exports={ | ||
mng, | ||
utils, | ||
tx, | ||
@@ -15,0 +17,0 @@ eth, |
{ | ||
"name": "mec", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "This package helps to create multi-layer chains upon Ethereum Network. Also it provides easy to use nodejs API to any of consortium network and helps to manage all of them at the same time", | ||
@@ -5,0 +5,0 @@ "main": "mec.js", |
@@ -20,4 +20,9 @@ const keys = require('../appStructure/keyElements.js'); | ||
let fromHex = function(str) { | ||
return keys.infura.toAscii(str).replace(/\u0000/g, '') | ||
let fromHex = function(hexx) { | ||
// return keys.infura.toAscii(str).replace(/\u0000/g, '') | ||
var hex = hexx.toString();//force conversion | ||
var str = ''; | ||
for (var i = 0; i < hex.length; i += 2) | ||
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); | ||
return str; | ||
} | ||
@@ -24,0 +29,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32517154
1472