diff --git a/.changeset/plain-maps-care.md b/.changeset/plain-maps-care.md new file mode 100644 index 00000000000..b6884215e2c --- /dev/null +++ b/.changeset/plain-maps-care.md @@ -0,0 +1,5 @@ +--- +"thirdweb": minor +--- + +Remove in-app wallet from default wallet list for bridge widgets" diff --git a/packages/thirdweb/src/react/web/ui/Bridge/FundWallet.tsx b/packages/thirdweb/src/react/web/ui/Bridge/FundWallet.tsx index 49ab3176391..b0c133a0619 100644 --- a/packages/thirdweb/src/react/web/ui/Bridge/FundWallet.tsx +++ b/packages/thirdweb/src/react/web/ui/Bridge/FundWallet.tsx @@ -15,6 +15,7 @@ import { isAddress, shortenAddress, } from "../../../../utils/address.js"; +import { getDefaultWalletsForBridgeComponents } from "../../../../wallets/defaultWallets.js"; import { useCustomTheme } from "../../../core/design-system/CustomThemeProvider.js"; import { fontSize, @@ -299,6 +300,13 @@ export function FundWallet(props: FundWalletProps) { theme={theme} {...props.connectOptions} autoConnect={false} + wallets={ + props.connectOptions?.wallets || + getDefaultWalletsForBridgeComponents({ + appMetadata: props.connectOptions?.appMetadata, + chains: props.connectOptions?.chains, + }) + } /> ) : (