Skip to content

Commit

Permalink
addressing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed May 20, 2021
1 parent 05ee2a3 commit de39e42
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 23 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
"@types/bignumber.js": "^4.0.2",
"@types/bn.js": "^4.11.6",
"@types/node": "^12.12.68",
"@types/underscore": "^1.10.24",
"babel-loader": "^8.1.0",
"bignumber.js": "^9.0.1",
"bn.js": "^4.11.9",
Expand Down Expand Up @@ -132,7 +131,6 @@
"sandboxed-module": "^2.0.4",
"ts-node": "^9.0.0",
"typescript": "^3.9.7",
"underscore": "1.12.1",
"wait-port": "^0.2.9",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12"
Expand Down
3 changes: 1 addition & 2 deletions packages/web3-bzz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"dependencies": {
"@types/node": "^12.12.6",
"got": "9.6.0",
"swarm-js": "^0.1.40",
"underscore": "1.12.1"
"swarm-js": "^0.1.40"
},
"devDependencies": {
"dtslint": "^3.4.1",
Expand Down
1 change: 0 additions & 1 deletion packages/web3-bzz/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

"use strict";


var swarm = require("swarm-js");


Expand Down
1 change: 0 additions & 1 deletion packages/web3-core-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"main": "lib/index.js",
"dependencies": {
"underscore": "1.12.1",
"web3-eth-iban": "1.3.6",
"web3-utils": "1.3.6"
},
Expand Down
1 change: 0 additions & 1 deletion packages/web3-core-method/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"main": "lib/index.js",
"dependencies": {
"@ethersproject/transactions": "^5.0.0-beta.135",
"underscore": "1.12.1",
"web3-core-helpers": "1.3.6",
"web3-core-promievent": "1.3.6",
"web3-core-subscriptions": "1.3.6",
Expand Down
1 change: 0 additions & 1 deletion packages/web3-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ Method.prototype.formatOutput = function (result) {
Method.prototype.toPayload = function (args) {
var call = this.getCall(args);
var callback = this.extractCallback(args);
//check if last args is a function, if so pop it out.

var params = this.formatInput(args);
this.validateArgs(params);
Expand Down
1 change: 0 additions & 1 deletion packages/web3-core-requestmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"compile": "tsc -b tsconfig.json"
},
"dependencies": {
"underscore": "1.12.1",
"util": "^0.12.0",
"web3-core-helpers": "1.3.6",
"web3-providers-http": "1.3.6",
Expand Down
1 change: 0 additions & 1 deletion packages/web3-core-subscriptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"main": "lib/index.js",
"dependencies": {
"eventemitter3": "4.0.4",
"underscore": "1.12.1",
"web3-core-helpers": "1.3.6"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core-subscriptions/src/subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var errors = require('web3-core-helpers').errors;
var EventEmitter = require('eventemitter3');
var formatters = require('web3-core-helpers').formatters;

function identity(value) {
function identity(value) { //used to return the exact same replica of the value given to it as the argument
return value;
}

Expand Down
1 change: 0 additions & 1 deletion packages/web3-eth-abi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"main": "lib/index.js",
"dependencies": {
"@ethersproject/abi": "5.0.7",
"underscore": "1.12.1",
"web3-utils": "1.3.6"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/web3-eth-accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"ethereumjs-common": "^1.3.2",
"ethereumjs-tx": "^2.1.1",
"scrypt-js": "^3.0.1",
"underscore": "1.12.1",
"uuid": "3.3.2",
"web3-core": "1.3.6",
"web3-core-helpers": "1.3.6",
Expand Down
1 change: 0 additions & 1 deletion packages/web3-eth-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"main": "lib/index.js",
"dependencies": {
"@types/bn.js": "^4.11.5",
"underscore": "1.12.1",
"web3-core": "1.3.6",
"web3-core-helpers": "1.3.6",
"web3-core-method": "1.3.6",
Expand Down
1 change: 0 additions & 1 deletion packages/web3-eth-ens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"dependencies": {
"content-hash": "^2.5.2",
"eth-ens-namehash": "2.0.8",
"underscore": "1.12.1",
"web3-core": "1.3.6",
"web3-core-helpers": "1.3.6",
"web3-core-promievent": "1.3.6",
Expand Down
1 change: 0 additions & 1 deletion packages/web3-eth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"main": "lib/index.js",
"dependencies": {
"underscore": "1.12.1",
"web3-core": "1.3.6",
"web3-core-helpers": "1.3.6",
"web3-core-method": "1.3.6",
Expand Down
1 change: 0 additions & 1 deletion packages/web3-providers-ipc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"main": "lib/index.js",
"dependencies": {
"oboe": "2.1.5",
"underscore": "1.12.1",
"web3-core-helpers": "1.3.6"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/web3-providers-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"main": "lib/index.js",
"dependencies": {
"eventemitter3": "4.0.4",
"underscore": "1.12.1",
"web3-core-helpers": "1.3.6",
"websocket": "^1.0.32"
},
Expand Down
1 change: 0 additions & 1 deletion packages/web3-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"ethjs-unit": "0.1.6",
"number-to-bn": "1.7.0",
"randombytes": "^2.1.0",
"underscore": "1.12.1",
"utf8": "3.0.0"
},
"devDependencies": {
Expand Down
7 changes: 3 additions & 4 deletions test/abi.decodeParameter.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,9 @@ describe('lib/solidity/coder', function () {
var result = coder.decodeParameters(t.types, t.values);

var resultArray = [];
for (var key in result) {
if(isFinite(key))
resultArray.push(result[key]);
}
Object.keys(result).map(key => {
if(isFinite(key)) resultArray.push(result[key])
});



Expand Down

0 comments on commit de39e42

Please sign in to comment.