diff --git a/lib/modules/contracts_manager/index.js b/lib/modules/contracts_manager/index.js index c69d6da8..032fca3a 100644 --- a/lib/modules/contracts_manager/index.js +++ b/lib/modules/contracts_manager/index.js @@ -164,7 +164,9 @@ class ContractsManager { const result = []; self.events.request('contracts:all', null, (contracts) => { contracts.forEach((contract) => { - self.events.request('contracts:contract', contract.className, (contract) => result.push(contract)); + self.events.request('contracts:contract', contract.className, (c) => ( + result.push(Object.assign(contract, c)) + )); }); }); res.send(result);