feat: add up event

This commit is contained in:
Anthony Laibe 2023-03-23 15:21:02 +01:00 committed by Anthony Laibe
parent f7690a5d89
commit b2ea01c32e
1 changed files with 4 additions and 0 deletions

View File

@ -142,8 +142,12 @@ func (c *ClientWithFallback) setIsConnected(value bool) {
} else {
c.consecutiveFailureCount = 0
if !c.IsConnected {
c.IsConnected = true
if c.WalletNotifier != nil {
c.WalletNotifier(c.ChainID, "up")
}
}
}
}