diff --git a/.changeset/clear-kiwis-rule.md b/.changeset/clear-kiwis-rule.md new file mode 100644 index 00000000000..1c0cd152ec8 --- /dev/null +++ b/.changeset/clear-kiwis-rule.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Rename otherWallet to allConnectedWallets in autoConnect onConnect callback diff --git a/packages/thirdweb/src/wallets/connection/types.ts b/packages/thirdweb/src/wallets/connection/types.ts index 56ccd8cea77..f77537db9e3 100644 --- a/packages/thirdweb/src/wallets/connection/types.ts +++ b/packages/thirdweb/src/wallets/connection/types.ts @@ -1,5 +1,6 @@ import type { Chain } from "../../chains/types.js"; import type { ThirdwebClient } from "../../client/client.js"; +import type { OnConnectCallback } from "../../react/core/hooks/connection/types.js"; import type { Wallet } from "../../wallets/interfaces/wallet.js"; import type { SmartWalletOptions } from "../../wallets/smart/types.js"; import type { AppMetadata } from "../../wallets/types.js"; @@ -108,7 +109,7 @@ export type AutoConnectProps = { * /> * ``` */ - onConnect?: (activeWallet: Wallet, allConnectedWallets: Wallet[]) => void; + onConnect?: OnConnectCallback; /** * Optional chain to autoconnect to