Skip to content

Commit 6cae637

Browse files
Update 7702 supported networks and details (#2014)
* Update 7702 supported networks and details * p -> div * edit supported networks
1 parent bbd25ce commit 6cae637

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

src/scss/custom.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,23 @@ ol {
355355
/* Details */
356356

357357
.details_lb9f > summary {
358-
padding-left: 2rem !important;
358+
padding-left: 2.7rem !important;
359+
font-size: 1.4rem;
360+
font-weight: 600;
361+
letter-spacing: 0.02rem;
362+
text-transform: uppercase;
359363

360364
&::before {
361365
border-width: 0.8rem !important;
366+
margin-left: 0.5rem !important;
367+
}
368+
}
369+
370+
.collapsibleContent_i85q {
371+
padding-top: 0 !important;
372+
373+
> div {
374+
font-weight: normal;
362375
}
363376
}
364377

wallet/how-to/send-transactions/send-batch-transactions.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,20 @@ The `atomic` capability can have a `status` of `supported` or `ready`:
8787
If the `atomic` capability is not `supported` or `ready` for a specified chain ID, MetaMask will not return anything for that chain ID.
8888
If you don't specify any chain IDs in `wallet_getCapabilities`, MetaMask will return all chains in the wallet where the `atomic` capability is `supported` or `ready`.
8989

90-
:::info Supported networks
90+
<details>
91+
<summary>Supported networks</summary>
92+
<div>
9193
MetaMask currently supports atomic batch transactions on the following networks:
9294

93-
- Ethereum Mainnet
94-
- Ethereum Sepolia
95-
- Gnosis Mainnet
96-
- Gnosis Chiado
97-
- BNB Smart Chain
95+
- Ethereum Mainnet and Sepolia
96+
- Gnosis Mainnet and Chiado
97+
- BNB Smart Chain Mainnet and Testnet
98+
- OP Mainnet
99+
- Base Mainnet and Sepolia
98100

99101
MetaMask will support this feature on more networks as they adopt EIP-7702.
100-
:::
102+
</div>
103+
</details>
101104

102105
:::note Atomic batch unsupported
103106
- If the user has already upgraded their account to a third-party smart contract account, MetaMask does not currently support atomic batch transactions for that account.

wallet/tutorials/react-dapp-global-state.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ will still execute.
498498
:::
499499
500500
<details>
501-
<summary><b>Use of `useCallback`</b></summary>
502-
<p>
501+
<summary>Use of `useCallback`</summary>
502+
<div>
503503
Both of the previous functions use `useCallback`.
504504
It is used to memoize the `connectWallet` function, optimize performance, and prevent unnecessary re-renders.
505505
It ensures the function instance remains consistent between renders if its dependencies are changed.
@@ -514,8 +514,7 @@ re-renders of child components.
514514
Although `useCallback` is not necessary, it demonstrates best practices.
515515
Predicting how a context provider will be used or how the dapp might change or scale is difficult.
516516
Using `useCallback` can improve performance in some cases by reducing unnecessary re-renders.
517-
518-
</p>
517+
</div>
519518
</details>
520519
521520
Add the following code to `src/hooks/WalletProvider.tsx` to bundle the state and functions using `contextValue`:

0 commit comments

Comments
 (0)