Skip to content

Commit

Permalink
docs: update eip6963 config in demos (#1150)
Browse files Browse the repository at this point in the history
Co-authored-by: tingzhao.ytz <[email protected]>
  • Loading branch information
yutingzhao1991 and tingzhao.ytz authored Sep 12, 2024
1 parent b351e75 commit 4c21861
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions packages/web3/src/ethereum/demos/chains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const App: React.FC = () => {
walletConnect={{
projectId: YOUR_WALLET_CONNECT_PROJECT_ID,
}}
eip6963
transports={{
[Mainnet.id]: http(),
[Polygon.id]: http(),
Expand Down
4 changes: 1 addition & 3 deletions packages/web3/src/ethereum/demos/custom-wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import { injected } from 'wagmi/connectors';
const App: React.FC = () => {
return (
<WagmiWeb3ConfigProvider
eip6963={{
autoAddInjectedWallets: true,
}}
eip6963
walletConnect={{
projectId: YOUR_WALLET_CONNECT_PROJECT_ID,
}}
Expand Down
9 changes: 1 addition & 8 deletions packages/web3/src/ethereum/demos/name.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ import { MetaMask, WagmiWeb3ConfigProvider } from '@ant-design/web3-wagmi';

const App: React.FC = () => {
return (
<WagmiWeb3ConfigProvider
eip6963={{
autoAddInjectedWallets: true,
}}
ens
balance
wallets={[MetaMask()]}
>
<WagmiWeb3ConfigProvider eip6963 ens balance wallets={[MetaMask()]}>
<Connector>
<ConnectButton />
</Connector>
Expand Down

0 comments on commit 4c21861

Please sign in to comment.