diff --git a/lib/modules/blockchain_connector/provider.js b/lib/modules/blockchain_connector/provider.js index a9ce85d2..c7563f03 100644 --- a/lib/modules/blockchain_connector/provider.js +++ b/lib/modules/blockchain_connector/provider.js @@ -76,7 +76,7 @@ class Provider { if (this.type === 'rpc') { return !!this.provider; } else if (this.type === 'ws') { - return this.provider && this.provider.connection._connection.connected; + return this.provider && this.provider.connection._connection && this.provider.connection._connection.connected; } return false;