feature(@embark/cockpit): Add contract state changes to cockpit

Add contract state changes to the cockpit by sending contract state updates via the websocket.
This commit is contained in:
emizzle 2019-02-27 14:47:53 +11:00 committed by Eric Mastro
parent bb86b605de
commit 89753c11e3
1 changed files with 3 additions and 0 deletions

View File

@ -212,6 +212,9 @@ class ContractsManager {
this.events.on('contractsDeployed', () => {
ws.send(JSON.stringify(this._contractsForApi()), () => undefined);
});
this.events.on('contractsState', () => {
ws.send(JSON.stringify(this._contractsForApi()), () => undefined);
});
}
);