소스 검색

test: use websocket instead of https for infura URL

Paul Razvan Berg 3 년 전
부모
커밋
8652e8b2ba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hardhat.config.ts

+ 1 - 1
hardhat.config.ts

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