Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mec

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mec - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

4

function/createMyChain.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc