|
|
@ -51,7 +51,6 @@ export class WalletConnectRemixClient extends PluginClient { |
|
|
|
|
|
|
|
|
|
|
|
subscribeToEvents () { |
|
|
|
subscribeToEvents () { |
|
|
|
this.wagmiConfig.subscribe((event) => { |
|
|
|
this.wagmiConfig.subscribe((event) => { |
|
|
|
console.log('this.wagmiConfig event subscribed: ', this.wagmiConfig) |
|
|
|
|
|
|
|
if (event.status === 'connected') { |
|
|
|
if (event.status === 'connected') { |
|
|
|
this.emit('accountsChanged', [event.data.account]) |
|
|
|
this.emit('accountsChanged', [event.data.account]) |
|
|
|
if (this.currentChain !== event.data.chain.id) { |
|
|
|
if (this.currentChain !== event.data.chain.id) { |
|
|
|