Fix provider connection check
This commit is contained in:
parent
853ab2d855
commit
81c62b1006
|
@ -76,7 +76,7 @@ class Provider {
|
|||
if (this.type === 'rpc') {
|
||||
return !!this.provider;
|
||||
} else if (this.type === 'ws') {
|
||||
return this.provider && this.provider.connected;
|
||||
return this.provider && this.provider.connection._connection.connected;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue