Socket
Socket
Sign inDemoInstall

eth-lib

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-lib - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "eth-lib",
"version": "0.1.5",
"version": "0.1.6",
"description": "Lightweight Ethereum libraries",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -29,3 +29,3 @@ const Api = provider => {

.then(([chainId, gasPrice, nonce, value, data]) =>
Map.merge(tx)({chainId: "0x"+chainId, gasPrice, nonce, value, data}))
Map.merge(tx)({chainId: Nat.fromNumber(chainId), gasPrice, nonce, value, data}))
.then(tx =>

@@ -84,3 +84,3 @@ send("eth_estimateGas")(tx)

const deployBytecode_txid = (from, code) =>
sendTransactionWithDefaults({from: from, data: code});
sendTransactionWithDefaults({from: from, data: code, to: "0x"});

@@ -87,0 +87,0 @@ // Address, Bytecode -> Receipt

@@ -27,3 +27,3 @@ const BN = require("bn.js");

const fromNumber = a =>
"0x" + new BN(a).toString("hex");
typeof a === "string" ? a : "0x" + new BN(a).toString("hex");

@@ -30,0 +30,0 @@ const toNumber = a =>

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