Remove lodash from tests (#1323)

(cherry picked from commit d062352de7)
This commit is contained in:
Roman Exempliarov
2018-09-17 23:21:01 +03:00
committed by Leo Arias
parent f8b0cec15b
commit a3bb56769e
3 changed files with 14 additions and 10 deletions

View File

@ -1,9 +1,8 @@
const _ = require('lodash');
const ethjsABI = require('ethjs-abi');
function findMethod (abi, name, args) {
for (let i = 0; i < abi.length; i++) {
const methodArgs = _.map(abi[i].inputs, 'type').join(',');
const methodArgs = abi[i].inputs.map(input => input.type).join(',');
if ((abi[i].name === name) && (methodArgs === args)) {
return abi[i];
}