mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
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…
x
Reference in New Issue
Block a user