nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: alchemyplatform/alchemy-sdk-js
Pull request #198 (2022-11-17 21:14:33)

fix typo in v2.2.2 release
Quick fix for batchRequests typo.


Patch:
diff --git a/src/api/alchemy-config.ts b/src/api/alchemy-config.ts
index c2f63874..b9dafba7 100644
--- a/src/api/alchemy-config.ts
+++ b/src/api/alchemy-config.ts
@@ -61,7 +61,7 @@ export class AlchemyConfig {
     this.maxRetries = config?.maxRetries || DEFAULT_MAX_RETRIES;
     this.url = config?.url;
     this.authToken = config?.authToken;
-    this.batchRequests = config?.batchRequsets || false;
+    this.batchRequests = config?.batchRequests || false;
   }
 
   /**
diff --git a/src/types/types.ts b/src/types/types.ts
index f6b3d237..6d9386ad 100644
--- a/src/types/types.ts
+++ b/src/types/types.ts
@@ -14,12 +14,18 @@ import { BaseNft, Nft } from '../api/nft';
  * @public
  */
 export interface AlchemySettings {
-  /** The Alchemy API key that can be found in the Alchemy dashboard. */
+  /**
+   * The Alchemy API key that can be found in the Alchemy dashboard.
+   *
+   * Defaults to: "demo" (a rate-limited public API key)
+   */
   apiKey?: string;
 
   /**
    * The name of the network. Once configured, the network cannot be changed. To
-   * use a different network, instantiate a new `Alchemy` instance
+   * use a different network, instantiate a new `Alchemy` instance.
+   *
+   * Defaults to: Network.ETH_MAINNET
    */
   network?: Network;
 
@@ -47,7 +53,7 @@ export interface AlchemySettings {
    *
    * This implementation is based on the `JsonRpcBatchProvider` in ethers.
    */
-  batchRequsets?: boolean;
+  batchRequests?: boolean;
 }
 
 /**


Test patch:
diff --git a/test/integration/provider.test.ts b/test/integration/provider.test.ts
index 3846fd01..15a97e8c 100644
--- a/test/integration/provider.test.ts
+++ b/test/integration/provider.test.ts
@@ -150,7 +150,7 @@ describe('AlchemyProvider', () => {
   it('batching mode resolves promises', async () => {
     alchemy = new Alchemy({
       apiKey: process.env.ALCHEMY_API_KEY,
-      batchRequsets: true
+      batchRequests: true
     });
 
     const p1 = alchemy.core.getGasPrice();
diff --git a/test/unit/provider.test.ts b/test/unit/provider.test.ts
index 53c97c7b..0c23072d 100644
--- a/test/unit/provider.test.ts
+++ b/test/unit/provider.test.ts
@@ -22,7 +22,7 @@ describe('AlchemyProvider', () => {
     let batcher: Mocked<RequestBatcher>;
     beforeEach(async () => {
       alchemy = new Alchemy({
-        batchRequsets: true
+        batchRequests: true
       });
       const provider = await alchemy.config.getProvider();
       batcher = provider.batcher as Mocked<RequestBatcher>;