Skip to content

Commit bfb4492

Browse files
committed
fix(sdk): remove LOBSTR (not EVM compatible)
1 parent 8b1a60d commit bfb4492

File tree

111 files changed

+1247
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1247
-226
lines changed

.changeset/pink-gorillas-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
SDK: Removed co.lobstr from the available wallets (an unsupported non-EVM wallet)

packages/thirdweb/scripts/wallets/generate.ts

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { join } from "node:path";
44
import { format } from "prettier";
55
import sharp from "sharp";
66

7+
const EXCLUDED_WALLETS = [
8+
"co.lobstr", // Not EVM compatible
9+
];
10+
711
const walletConnectWallets = await fetch(
812
"https://explorer-api.walletconnect.com/w3m/v1/getAllListings?projectId=145769e410f16970a79ff77b2d89a1e0",
913
).then(async (res) => {
@@ -96,24 +100,26 @@ function rdns(wallet: Wallet) {
96100
.join(".");
97101
}
98102

99-
const allWalletsWithIds = allWalletsArray.map((wallet) => {
100-
// biome-ignore lint/performance/noDelete: aware it's bad but it's OK in generate script
101-
// biome-ignore lint/suspicious/noExplicitAny: aware it's bad but it's OK in generate script
102-
delete (wallet as any).order;
103-
// biome-ignore lint/performance/noDelete: aware it's bad but it's OK in generate script
104-
// biome-ignore lint/suspicious/noExplicitAny: aware it's bad but it's OK in generate script
105-
delete (wallet as any).injected;
106-
107-
const id = rdns(wallet);
108-
109-
if (id && id in deepLinkSupportedWalletsRecord) {
110-
wallet.deepLink = {
111-
mobile: deepLinkSupportedWalletsRecord[id].mobile,
112-
};
113-
}
103+
const allWalletsWithIds = allWalletsArray
104+
.map((wallet) => {
105+
// biome-ignore lint/performance/noDelete: aware it's bad but it's OK in generate script
106+
// biome-ignore lint/suspicious/noExplicitAny: aware it's bad but it's OK in generate script
107+
delete (wallet as any).order;
108+
// biome-ignore lint/performance/noDelete: aware it's bad but it's OK in generate script
109+
// biome-ignore lint/suspicious/noExplicitAny: aware it's bad but it's OK in generate script
110+
delete (wallet as any).injected;
111+
112+
const id = rdns(wallet);
113+
114+
if (id && id in deepLinkSupportedWalletsRecord) {
115+
wallet.deepLink = {
116+
mobile: deepLinkSupportedWalletsRecord[id].mobile,
117+
};
118+
}
114119

115-
return { ...wallet, id: id };
116-
});
120+
return { ...wallet, id: id };
121+
})
122+
.filter((w) => !EXCLUDED_WALLETS.includes(w.id));
117123

118124
// filter duplicate ids, we'll keep the first ones
119125

0 commit comments

Comments
 (0)