mirror of https://github.com/embarklabs/embark.git
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:
parent
bb86b605de
commit
89753c11e3
|
@ -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);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue