Эх сурвалжийг харах

test: use websocket instead of https for infura URL

Paul Razvan Berg 3 жил өмнө
parent
commit
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,