Remove lodash from tests (#1323)
This commit is contained in:
committed by
Francisco Giordano
parent
b4f87bb8fc
commit
d062352de7
@ -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