From bf46b911662c7df67dbd91c5ca0cd3cfc6a32f02 Mon Sep 17 00:00:00 2001 From: emizzle Date: Mon, 20 Aug 2018 14:24:50 +1000 Subject: [PATCH] concat deployed fiddle contracts with existing contracts --- lib/modules/contracts_manager/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/contracts_manager/index.js b/lib/modules/contracts_manager/index.js index c7710f420..54e093f79 100644 --- a/lib/modules/contracts_manager/index.js +++ b/lib/modules/contracts_manager/index.js @@ -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)}`);