Remove lodash from tests (#1323)
(cherry picked from commit d062352de7)
This commit is contained in:
committed by
Leo Arias
parent
f8b0cec15b
commit
a3bb56769e
@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user