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

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.12 to 0.1.13

2

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

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

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

// Address, Address, ContractInterface -> Contract
const contract = (from, address, interface) => {
const contract = (from, address, contractInterface) => {
let contract = {};

@@ -59,3 +59,3 @@ contract._address = address;

contract.broadcast = {};
interface.forEach(method => {
contractInterface.forEach(method => {
if (method && method.name) {

@@ -95,5 +95,5 @@ const call = (waitReceipt, value) => (...params) => {

// Address, Bytecode, ContractInterface
const deployBytecodeContract = (from, code, interface) =>
const deployBytecodeContract = (from, code, contractInterface) =>
deployBytecode(from, code)
.then(receipt => contract(from, receipt.contractAddress, interface));
.then(receipt => contract(from, receipt.contractAddress, contractInterface));

@@ -127,3 +127,2 @@ // Address, String, Address -> Contract

getTransactionReceipt,
compileSolidity,
call,

@@ -130,0 +129,0 @@ getBalance,

@@ -37,3 +37,2 @@ // This was ported from https://github.com/emn178/js-sha3, with some minor

blocks: [],
s: [],
reset: true,

@@ -40,0 +39,0 @@ block: 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