Skip to content

Commit ed5b87c

Browse files
MananTankIDubuque
authored andcommitted
[wallets] - Fix chains package not tree-shaken because of SmartWallet (#1853)
1 parent a0d7844 commit ed5b87c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.changeset/silver-dodos-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/wallets": patch
3+
---
4+
5+
Fix Chains Package Tree shaking issue caused by SmartWallet

packages/wallets/src/evm/wallets/smart-wallet.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@ import { getValidChainRPCs } from "@thirdweb-dev/chains";
2626
import { providers, utils } from "ethers";
2727

2828
// export types and utils for convenience
29-
export * from "../connectors/smart-wallet/types";
30-
export * from "../connectors/smart-wallet/utils";
29+
export type * from "../connectors/smart-wallet/types";
30+
export {
31+
type AccessibleSmartWallets,
32+
getAllSigners,
33+
getAllSmartWallets,
34+
getSmartWalletAddress,
35+
isSmartWalletDeployed,
36+
} from "../connectors/smart-wallet/utils";
37+
3138
export type { PaymasterAPI } from "@account-abstraction/sdk";
3239

3340
export class SmartWallet

0 commit comments

Comments
 (0)