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

ethereum-console

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereum-console - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

18

getIpcPath.js

@@ -7,2 +7,4 @@ /**

var fs = require("fs");
module.exports = function() {

@@ -12,9 +14,19 @@ var p = require('path');

if(process.platform === 'darwin')
path += '/Library/Ethereum/geth.ipc';
var macDefaultDir = "/Library/Ethereum/geth.ipc";
var linuxDefaultDir = "/.ethereum/geth.ipc";
if(process.platform === 'darwin') {
if(fs.existsSync(path + macDefaultDir))
path += macDefaultDir;
else
if(fs.existsSync(path + linuxDefaultDir))
path += linuxDefaultDir;
else
path += macDefaultDir;
}
if(process.platform === 'freebsd' ||
process.platform === 'linux' ||
process.platform === 'sunos')
path += '/.ethereum/geth.ipc';
path += linuxDefaultDir;

@@ -21,0 +33,0 @@ if(process.platform === 'win32')

@@ -56,3 +56,7 @@ #!/usr/bin/env node

console.log("Entering interactive mode.");
repl.start();
repl.start({
prompt: "> ",
input: process.stdin,
output: process.stdout
});
}

@@ -59,0 +63,0 @@ }

2

package.json
{
"name": "ethereum-console",
"version": "0.0.3",
"version": "0.0.4",
"description": "Commandline console for Ethereum nodes",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -28,3 +28,3 @@ function chainParams(options) {

for (var address in options.accounts) {
params[address] = { wei: options.accounts[address] };
params.accounts[address] = { wei: options.accounts[address] };
}

@@ -39,2 +39,2 @@ }

chainParams: chainParams
};
};
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