push plugin event

pull/4761/head
yann300 7 months ago committed by Aniket
parent 96af3b3879
commit 0b636fe918
  1. 1
      apps/remix-ide/src/blockchain/blockchain.tsx

@ -107,6 +107,7 @@ export class Blockchain extends Plugin {
this.active = true
this.on('manager', 'pluginActivated', (plugin) => {
if (plugin && plugin.name && (plugin.name.startsWith('injected') || plugin.name === 'walletconnect')) {
this.registeredPluginEvents.push(plugin.name)
this.on(plugin.name, 'chainChanged', () => {
this.detectNetwork((error, network) => {
this.networkStatus = {network, error}

Loading…
Cancel
Save