Remove lodash

This commit is contained in:
emizzle 2018-08-30 21:41:19 +10:00 committed by Pascal Precht
parent 6207023bec
commit 859d78eb41
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,6 @@
let toposort = require('toposort');
let async = require('async');
const cloneDeep = require('clone-deep');
const _ = require('lodash');
let utils = require('../../utils/utils.js');
@ -179,7 +178,10 @@ class ContractsManager {
return res.send({error: err.message});
}
// pick the compiled contracts that have been built
const builtContracts = _.pick(self.contracts, contractNames);
let builtContracts = {};
contractNames.forEach(function(key){
builtContracts[key] = self.contracts[key];
});
// for each contract, deploy (in parallel)
async.eachOf(builtContracts, (contract, contractName, next) => {