-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add preference property to coinbaseWallet chore: simplify changeset example * chore: set preference default value as undefined * chore: use type instead of Object.assign * chore: switch from type to interface for CoinbaseWallet type * chore: replace preference to be all in example dApp chore: remove comment * chore: add changeset, update docs Co-authored-by: Wilson Cusack <[email protected]> * fix: add to example dapp --------- Co-authored-by: Daniel Sinclair <[email protected]> Co-authored-by: Wilson Cusack <[email protected]>
- Loading branch information
1 parent
28470ab
commit fea278a
Showing
5 changed files
with
70 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
"@rainbow-me/rainbowkit": patch | ||
"example": patch | ||
--- | ||
|
||
The `coinbaseWallet` wallet connector now has a `preference` argument to control whether Smart Wallet is enabled and available for users. Preference based behavior is documented [here](https://www.smartwallet.dev/sdk/makeWeb3Provider#parameters). | ||
|
||
Smart Wallet will be enabled by default with `all` in early June, without a further upgrade. | ||
|
||
Developers can test Smart Wallet with `sepolia` and `baseSepolia` chains today by setting `smartWalletOnly` like so: | ||
|
||
```tsx | ||
import { coinbaseWallet } from '@rainbow-me/rainbowkit/wallets'; | ||
|
||
// Enable Coinbase Smart Wallet for testing | ||
coinbaseWallet.preference = 'smartWalletOnly'; | ||
|
||
// You must manually specify your wallet list with `wallets` in | ||
// `getDefaultConfig` or `connectorsForWallets` to assign the preference | ||
const config = getDefaultConfig({ | ||
/* ... */ | ||
wallets: [ | ||
{ | ||
groupName: 'Popular', | ||
wallets: [coinbaseWallet], | ||
}, | ||
], | ||
/* ... */ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters