diff --git a/.changeset/giant-phones-mix.md b/.changeset/giant-phones-mix.md new file mode 100644 index 00000000000..d33d5c23381 --- /dev/null +++ b/.changeset/giant-phones-mix.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Respect coinbase wallet create settings when preloading the provider diff --git a/packages/thirdweb/src/react/web/utils/usePreloadWalletProviders.ts b/packages/thirdweb/src/react/web/utils/usePreloadWalletProviders.ts index 196ee47e436..9b9147d77e7 100644 --- a/packages/thirdweb/src/react/web/utils/usePreloadWalletProviders.ts +++ b/packages/thirdweb/src/react/web/utils/usePreloadWalletProviders.ts @@ -2,6 +2,7 @@ import { useQueries } from "@tanstack/react-query"; import type { ThirdwebClient } from "../../../client/client.js"; import { COINBASE } from "../../../wallets/constants.js"; import type { Wallet } from "../../../wallets/interfaces/wallet.js"; +import type { CreateWalletArgs } from "../../../wallets/wallet-types.js"; export function usePreloadWalletProviders({ client, @@ -18,7 +19,9 @@ export function usePreloadWalletProviders({ const { getCoinbaseWebProvider } = await import( "../../../wallets/coinbase/coinbaseWebSDK.js" ); - await getCoinbaseWebProvider(); + await getCoinbaseWebProvider( + w.getConfig() as CreateWalletArgs[1], + ); // return _something_ return true; }