concat deployed fiddle contracts with existing contracts

This commit is contained in:
emizzle 2018-08-20 14:24:50 +10:00 committed by Pascal Precht
parent fec740ad6f
commit bf46b91166
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class ContractsManager {
'post',
'/embark-api/contract/deploy',
(req, res) => {
self.compiledContracts = req.body.compiledContract;
self.compiledContracts = Object.assign(self.compiledContracts, req.body.compiledContract);
self.build((err, _mgr) => {
const responseData = {errors: err, success: !err};
this.logger.trace(`POST response /embark-api/contract/deploy:\n ${JSON.stringify(responseData)}`);