ethjs-contract
Advanced tools
+4
-0
@@ -0,1 +1,5 @@ | ||
| # 0.1.5 -- remove ethjs-sha3 for js-sha3 | ||
| 1. Removed `ethjs-sha3` for `js-sha3`. | ||
| # 0.1.4 -- fix object mutation | ||
@@ -2,0 +6,0 @@ |
+2
-2
| 'use strict'; | ||
| var abi = require('ethjs-abi'); // eslint-disable-line | ||
| var sha3 = require('ethjs-sha3'); // eslint-disable-line | ||
| var keccak256 = require('js-sha3').keccak_256; // eslint-disable-line | ||
| var EthFilter = require('ethjs-filter'); // eslint-disable-line | ||
@@ -94,3 +94,3 @@ var getKeys = require('ethjs-util').getKeys; // eslint-disable-line | ||
| var filterInputTypes = getKeys(methodObject.inputs, 'type', false); | ||
| var filterTopic = sha3(methodObject.name + '(' + filterInputTypes.join(',') + ')'); | ||
| var filterTopic = '0x' + keccak256(methodObject.name + '(' + filterInputTypes.join(',') + ')'); | ||
| var argsObject = Object.assign({}, methodArgs[0]) || {}; | ||
@@ -97,0 +97,0 @@ |
+3
-3
| { | ||
| "name": "ethjs-contract", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "description": "A simple contract object for the Ethereum RPC.", | ||
@@ -69,5 +69,5 @@ "main": "lib/index.js", | ||
| "dependencies": { | ||
| "ethjs-abi": "0.1.4", | ||
| "ethjs-abi": "0.1.5", | ||
| "ethjs-filter": "0.1.5", | ||
| "ethjs-sha3": "0.1.2", | ||
| "js-sha3": "0.5.5", | ||
| "ethjs-util": "0.1.3" | ||
@@ -74,0 +74,0 @@ }, |
+2
-2
| const abi = require('ethjs-abi'); // eslint-disable-line | ||
| const sha3 = require('ethjs-sha3'); // eslint-disable-line | ||
| const keccak256 = require('js-sha3').keccak_256; // eslint-disable-line | ||
| const EthFilter = require('ethjs-filter'); // eslint-disable-line | ||
@@ -91,3 +91,3 @@ const getKeys = require('ethjs-util').getKeys; // eslint-disable-line | ||
| const filterInputTypes = getKeys(methodObject.inputs, 'type', false); | ||
| const filterTopic = sha3(`${methodObject.name}(${filterInputTypes.join(',')})`); | ||
| const filterTopic = `0x${keccak256(`${methodObject.name}(${filterInputTypes.join(',')})`)}`; | ||
| const argsObject = Object.assign({}, methodArgs[0]) || {}; | ||
@@ -94,0 +94,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
32
-21.95%703916
-6.4%8962
-7.23%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated