We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f8bd99 commit 58fd5bcCopy full SHA for 58fd5bc
libs/endpoints-helper/src/index.ts
@@ -66,9 +66,16 @@ const resolvedUrls: EndpointUrls = prefix
66
) as EndpointUrls
67
: defaultUrls;
68
69
-resolvedUrls.solidityScanWebSocket = resolvedUrls.solidityScan.replace(
70
- 'http://',
71
- 'ws://'
72
-);
+if (resolvedUrls.solidityScan.startsWith('https://')) {
+ resolvedUrls.solidityScanWebSocket = resolvedUrls.solidityScan.replace(
+ 'https://',
+ 'wss://'
73
+ );
74
+} else if (resolvedUrls.solidityScan.startsWith('http://')) {
75
76
+ 'http://',
77
+ 'ws://'
78
79
+}
80
81
export const endpointUrls = resolvedUrls;
0 commit comments