浏览代码

test: switch back to https instead of websocket for infura URL

Paul Razvan Berg 3 年之前
父节点
当前提交
0408edf57e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hardhat.config.ts

+ 1 - 1
hardhat.config.ts

@@ -38,7 +38,7 @@ const chainIds = {
 };
 };
 
 
 function getChainConfig(network: keyof typeof chainIds): NetworkUserConfig {
 function getChainConfig(network: keyof typeof chainIds): NetworkUserConfig {
-  const url: string = "wss://" + network + ".infura.io/ws/v3/" + infuraApiKey;
+  const url: string = "https://" + network + ".infura.io/v3/" + infuraApiKey;
   return {
   return {
     accounts: {
     accounts: {
       count: 10,
       count: 10,