Comparing version 0.1.4 to 0.1.5
@@ -0,1 +1,5 @@ | ||
# 0.1.5 -- replace out sha3 | ||
1. Getting rid of `ethjs-sha3` for `js-sha3` | ||
# 0.1.4 -- config fixes | ||
@@ -2,0 +6,0 @@ |
@@ -99,3 +99,3 @@ 'use strict'; | ||
var signature = method.name + '(' + utils.getKeys(method.inputs, 'type').join(',') + ')'; | ||
var signatureEncoded = '0x' + utils.sha3(signature, true).slice(0, 4).toString('hex'); | ||
var signatureEncoded = '0x' + new Buffer(utils.keccak256(signature), 'hex').slice(0, 4).toString('hex'); | ||
var paramsEncoded = encodeParams(utils.getKeys(method.inputs, 'type'), values).substring(2); | ||
@@ -102,0 +102,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var numberToBN = require('number-to-bn'); | ||
var sha3 = require('ethjs-sha3'); | ||
var keccak256 = require('js-sha3').keccak_256; | ||
@@ -398,3 +398,3 @@ // from ethereumjs-util | ||
sha3: sha3, | ||
keccak256: keccak256, | ||
@@ -401,0 +401,0 @@ getKeys: getKeys, |
{ | ||
"name": "ethjs-abi", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Just the Ethereum encoding and decoding methods from the ethers-io-wallet.", | ||
@@ -70,3 +70,3 @@ "main": "lib/index.js", | ||
"bn.js": "4.11.6", | ||
"ethjs-sha3": "0.1.2", | ||
"js-sha3": "0.5.5", | ||
"number-to-bn": "1.4.0" | ||
@@ -73,0 +73,0 @@ }, |
@@ -93,3 +93,3 @@ /* eslint-disable */ | ||
const signature = `${method.name}(${utils.getKeys(method.inputs, 'type').join(',')})`; | ||
const signatureEncoded = `0x${utils.sha3(signature, true).slice(0, 4).toString('hex')}`; | ||
const signatureEncoded = `0x${(new Buffer(utils.keccak256(signature), 'hex')).slice(0, 4).toString('hex')}`; | ||
const paramsEncoded = encodeParams(utils.getKeys(method.inputs, 'type'), values).substring(2); | ||
@@ -96,0 +96,0 @@ |
const BN = require('bn.js'); | ||
const numberToBN = require('number-to-bn'); | ||
const sha3 = require('ethjs-sha3'); | ||
const keccak256 = require('js-sha3').keccak_256; | ||
@@ -359,3 +359,3 @@ // from ethereumjs-util | ||
sha3, | ||
keccak256, | ||
@@ -362,0 +362,0 @@ getKeys, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1910867
9387
+ Addedjs-sha3@0.5.5
+ Addedjs-sha3@0.5.5(transitive)
- Removedethjs-sha3@0.1.2
- Removedethjs-sha3@0.1.2(transitive)
- Removedhash.js@1.0.3(transitive)
- Removedinherits@2.0.4(transitive)