File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/thirdweb/src/react/web/utils Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Respect coinbase wallet create settings when preloading the provider
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { useQueries } from "@tanstack/react-query";
2
2
import type { ThirdwebClient } from "../../../client/client.js" ;
3
3
import { COINBASE } from "../../../wallets/constants.js" ;
4
4
import type { Wallet } from "../../../wallets/interfaces/wallet.js" ;
5
+ import type { CreateWalletArgs } from "../../../wallets/wallet-types.js" ;
5
6
6
7
export function usePreloadWalletProviders ( {
7
8
client,
@@ -18,7 +19,9 @@ export function usePreloadWalletProviders({
18
19
const { getCoinbaseWebProvider } = await import (
19
20
"../../../wallets/coinbase/coinbaseWebSDK.js"
20
21
) ;
21
- await getCoinbaseWebProvider ( ) ;
22
+ await getCoinbaseWebProvider (
23
+ w . getConfig ( ) as CreateWalletArgs < typeof COINBASE > [ 1 ] ,
24
+ ) ;
22
25
// return _something_
23
26
return true ;
24
27
}
You can’t perform that action at this time.
0 commit comments