add mumbai and sepolia

add mumbai and sepolia

diff --git a/index.ts b/index.ts
index 24d0391..0c70db3 100644
--- a/index.ts
+++ b/index.ts
@@ -10,12 +10,16 @@ import { LocalWalletNode } from "@thirdweb-dev/wallets/evm/wallets/local-wallet-
 import {
   BaseGoerli,
   Goerli,
+  Mumbai,
   OptimismGoerli,
   ScrollAlphaTestnet,
+  Sepolia,
 } from "@thirdweb-dev/chains";
 import {
   batchTransaction,
   claimERC721Token,
+  claimMumbaiNFT,
+  claimSepoliaNFT,
   claimToken,
   playCatAttack,
 } from "./sdk-calls";
@@ -23,16 +27,18 @@ import {
 config();
 
 // Put your chain here
-const chain = Goerli;
+const chain = Mumbai;
 // Put your thirdweb API key here (or in .env)
 const thirdwebApiKey = process.env.THIRDWEB_API_KEY as string;
 
 // Factory addresses for each chain
 const factories = {
-  [Goerli.chainId]: "0xaB15553D83b47cac2DDfD8D4753D740e69930834",
+  [Goerli.chainId]: "0xd559b9e1d3214179b8D5d177beCBd4eEB827Db6f",
   [BaseGoerli.chainId]: "0x88d9A32D459BBc7B77fc912d9048926dEd78986B",
   [OptimismGoerli.chainId]: "0x54ec360704b2e9E4e6499a732b78094D6d78e37B",
   [ScrollAlphaTestnet.chainId]: "0x2eaDAa60dBB74Ead3E20b23E4C5A0Dd789932846",
+  [Mumbai.chainId]: "0x272A90FF4403473d766127A3CCB7ff1d9E7d45A2",
+  [Sepolia.chainId]: "0x9D4409c65AC036860F5CAAF34D5b69ae324A7075",
 };
 
 const main = async () => {
@@ -40,7 +46,9 @@ const main = async () => {
     const factoryAddress = factories[chain.chainId];
     console.log("Running on", chain.slug, "with factory", factoryAddress);
     // Local signer
-    let localWallet = new LocalWalletNode();
+    let localWallet = new LocalWalletNode({
+      chain,
+    });
     await localWallet.loadOrCreate({
       strategy: "mnemonic",
       encryption: false,
@@ -93,6 +101,12 @@ const main = async () => {
       case BaseGoerli.chainId:
         await playCatAttack(sdk, personalWalletAddress);
         break;
+      case Mumbai.chainId:
+        await claimMumbaiNFT(sdk);
+        break;
+      case Sepolia.chainId:
+        await claimSepoliaNFT(sdk);
+        break;
     }
   } catch (e) {
     console.error("Something went wrong: ", await e);
diff --git a/package.json b/package.json
index 8f11287..93763b8 100644
--- a/package.json
+++ b/package.json
@@ -12,8 +12,8 @@
   "dependencies": {
     "@account-abstraction/sdk": "^0.5.0",
     "@thirdweb-dev/chains": "^0.1.11",
-    "@thirdweb-dev/sdk": "^3.10.12",
-    "@thirdweb-dev/wallets": "^0.2.17",
+    "@thirdweb-dev/sdk": "^3.10.15-nightly-49ec2d17-20230515214212",
+    "@thirdweb-dev/wallets": "^0.2.20-nightly-49ec2d17-20230515214212",
     "axios": "^1.3.4",
     "dotenv": "^16.0.3",
     "ethers": "^5"
diff --git a/sdk-calls.ts b/sdk-calls.ts
index 469846f..784e33d 100644
--- a/sdk-calls.ts
+++ b/sdk-calls.ts
@@ -58,6 +58,22 @@ export const claimERC721Token = async (sdk: ThirdwebSDK) => {
   console.log("claimed", tx[0].receipt.transactionHash);
 };
 
+export const claimSepoliaNFT = async (sdk: ThirdwebSDK) => {
+  const contract = await sdk.getContract(
+    "0x8fb9023405Cc2fDa7C1BB3B963767D121cAa698A" // sepolia
+  );
+  const tx = await contract.erc1155.claim(0, 1);
+  console.log("claimed", tx.receipt.transactionHash);
+};
+
+export const claimMumbaiNFT = async (sdk: ThirdwebSDK) => {
+  const contract = await sdk.getContract(
+    "0xD170A53dADb19f62C78AB9982236857B71dbc83A" // mumbai
+  );
+  const tx = await contract.erc1155.claim(0, 1);
+  console.log("claimed", tx.receipt.transactionHash);
+};
+
 export const playCatAttack = async (
   sdk: ThirdwebSDK,
   personalWalletAddress: string
diff --git a/yarn.lock b/yarn.lock
index 5aebe70..1943851 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -991,10 +991,10 @@
     "@stablelib/random" "^1.0.2"
     "@stablelib/wipe" "^1.0.1"
 
-"@thirdweb-dev/chains@0.1.13":
-  version "0.1.13"
-  resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.13.tgz#1f1338e13b6b30a05903252824953ac133647407"
-  integrity sha512-jOE2cQUlhbMuy/wqGaUzXjjDgE+S94gAXNxmj9e6jrDianuW/fVg8BfRxZxNYrtzogU70YR0subf1oBRfgqEAQ==
+"@thirdweb-dev/chains@0.1.16-nightly-49ec2d17-20230515214212":
+  version "0.1.16-nightly-49ec2d17-20230515214212"
+  resolved "https://registry.yarnpkg.com/@thirdweb-dev/chains/-/chains-0.1.16-nightly-49ec2d17-20230515214212.tgz#d9ac4ea3dd6e287a4a9beaeb30e663d5d24fa6f4"
+  integrity sha512-1aqg7H+5gQMDn+t9+rTuL3C8EGlfBIidH/+NM5JikpjqIFKc2EdwNYQggbhyWd9Fpk/r87e0+KyS9/XBGBWD5Q==
 
 "@thirdweb-dev/chains@^0.1.11":
   version "0.1.11"
@@ -1018,12 +1018,12 @@
   resolved "https://registry.yarnpkg.com/@thirdweb-dev/generated-abis/-/generated-abis-0.0.1.tgz#0d788d6aff0ac08f11e9eeb9ae4c8321845272a8"
   integrity sha512-vO9/3lSLO8smyyH1QVeYravSTzFwV1nf1C/Im1NBDPdH8//YvcbhtETGGiNfHWpyCvSi0vRYwvf+/7FKdwpDGQ==
 
-"@thirdweb-dev/sdk@3.10.12", "@thirdweb-dev/sdk@^3.10.12":
-  version "3.10.12"
-  resolved "https://registry.yarnpkg.com/@thirdweb-dev/sdk/-/sdk-3.10.12.tgz#c6598131e22921464442aa4239237caf1c46e90c"
-  integrity sha512-FTvlkUa75/sVHiU6OBXKhNq0YcXLGN0UY8sXh+c9lxTDnSA2Qs650lR2rj5m49U9nEaYtnJ0uUgqzBJvzulMYA==
+"@thirdweb-dev/sdk@3.10.15-nightly-49ec2d17-20230515214212", "@thirdweb-dev/sdk@^3.10.15-nightly-49ec2d17-20230515214212":
+  version "3.10.15-nightly-49ec2d17-20230515214212"
+  resolved "https://registry.yarnpkg.com/@thirdweb-dev/sdk/-/sdk-3.10.15-nightly-49ec2d17-20230515214212.tgz#c0dd3db3a0c719b8f26bd336ba71da5c064eb0d8"
+  integrity sha512-tXt+F7KKpD1GMPErOjOL62DN8UNGZ0qL+/hq8B3XmsRNBRBPyL8sl/dDeUWrLXluuijInmRxuLW4LLKObTSbmg==
   dependencies:
-    "@thirdweb-dev/chains" "0.1.13"
+    "@thirdweb-dev/chains" "0.1.16-nightly-49ec2d17-20230515214212"
     "@thirdweb-dev/contracts-js" "1.3.4"
     "@thirdweb-dev/generated-abis" "0.0.1"
     "@thirdweb-dev/storage" "1.1.2"
@@ -1051,10 +1051,10 @@
     ipfs-unixfs-importer "^7.0.1"
     uuid "^9.0.0"
 
-"@thirdweb-dev/wallets@^0.2.17":
-  version "0.2.17"
-  resolved "https://registry.yarnpkg.com/@thirdweb-dev/wallets/-/wallets-0.2.17.tgz#089b93a0d0e75e8992e33a2884bb16bf860ab337"
-  integrity sha512-ionOfx/qMuQtk2KHwQ2kZoEA9Jb9sYGWfV2sXfFl36MyIQe04NMFnl0ewj5dhH2zjv1Hdq++SG39amfO+fr0AA==
+"@thirdweb-dev/wallets@^0.2.20-nightly-49ec2d17-20230515214212":
+  version "0.2.20-nightly-49ec2d17-20230515214212"
+  resolved "https://registry.yarnpkg.com/@thirdweb-dev/wallets/-/wallets-0.2.20-nightly-49ec2d17-20230515214212.tgz#1c658269414bc453dffad87ed852999d9a5540a4"
+  integrity sha512-stXWlqKIOqlFGNp+Ov9O3EiDVh5tgm2Pbl8/KItwcofiTayaJQ9kvUf6EdDswU79MlXy0b9WhUWHMZwR2AEArg==
   dependencies:
     "@account-abstraction/contracts" "^0.5.0"
     "@account-abstraction/sdk" "^0.5.0"
@@ -1067,9 +1067,9 @@
     "@safe-global/safe-core-sdk" "^3.3.2"
     "@safe-global/safe-ethers-adapters" "^0.1.0-alpha.16"
     "@safe-global/safe-ethers-lib" "^1.9.2"
-    "@thirdweb-dev/chains" "0.1.13"
-    "@thirdweb-dev/sdk" "3.10.12"
-    "@walletconnect/ethereum-provider" "~2.4.6"
+    "@thirdweb-dev/chains" "0.1.16-nightly-49ec2d17-20230515214212"
+    "@thirdweb-dev/sdk" "3.10.15-nightly-49ec2d17-20230515214212"
+    "@walletconnect/ethereum-provider" "2.6.0"
     "@walletconnect/jsonrpc-http-connection" "^1.0.0"
     "@walletconnect/jsonrpc-provider" "^1.0.3"
     "@walletconnect/jsonrpc-types" "^1.0.1"
@@ -1078,6 +1078,7 @@
     "@walletconnect/legacy-modal" "^2.0.0-rc.0"
     "@walletconnect/legacy-types" "^2.0.0-rc.0"
     "@walletconnect/legacy-utils" "^2.0.0-rc.0"
+    "@web3modal/standalone" "^2.4.1"
     buffer "^6.0.3"
     cross-fetch "^3.1.5"
     crypto-js "^4.1.1"
@@ -1180,13 +1181,13 @@
   dependencies:
     "@types/node" "*"
 
-"@walletconnect/core@2.4.10":
-  version "2.4.10"
-  resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.4.10.tgz#8975996b5c47d0d11a1187b3793215678c3ea3af"
-  integrity sha512-3ZVS07NS9+zG+Mw4MOxYhoJHwCSuIOrq+HuhaTLZZ+NswscZ+GwguF2fTsRNgk4jXkMJodaqUFxfPJeCVVcwHQ==
+"@walletconnect/core@2.6.0":
+  version "2.6.0"
+  resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.6.0.tgz#7a3a6c4849e90885d15c6d29dd85cd4af22b211c"

[... diff too long, it was truncated ...]

GitHub
sha: c3d83a1a3a18d0da1ac5fc07105d6901a9e03806