Comparing version 0.1.5 to 0.1.6
{ | ||
"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 => |
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
48628