Fix provider connection check

This commit is contained in:
Anthony Laibe 2018-10-23 13:18:43 +01:00
parent 853ab2d855
commit 81c62b1006
1 changed files with 1 additions and 1 deletions

View File

@ -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;