Skip to content

Commit 503bcb1

Browse files
consensuslayerbgravenorstalexandratran
authored
Docs improvements (#2231)
* Update environment.md * Update delegation-quickstart.md * Update restrict-delegation.md * Update redeem-delegation.md * Update caveats.md * Update dashboard-stats.md * Update whats-new.md * Update use-deeplinks.md * Update index.md * Update interact-with-erc-20-tokens.md * Update user-defined-components.md * Update cron-jobs.md * Update services/get-started/pricing/index.md * Update snaps/features/cron-jobs.md Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com> --------- Co-authored-by: Byron Gravenorst <50852695+bgravenorst@users.noreply.github.com> Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com>
1 parent 7f65792 commit 503bcb1

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

delegation-toolkit/concepts/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ You can deploy the contracts using any method, but the toolkit provides a conven
9090
This function requires a Viem [Public Client](https://viem.sh/docs/clients/public.html), [Wallet Client](https://viem.sh/docs/clients/wallet.html), and [Chain](https://viem.sh/docs/glossary/types#chain)
9191
to deploy the contracts and resolve the `DeleGatorEnvironment`.
9292

93-
Your wallet must have sufficient native token balance to deploy the contracts.
93+
Your wallet must have a sufficient native token balance to deploy the contracts.
9494

9595
<Tabs>
9696
<TabItem value="example.ts">

delegation-toolkit/get-started/delegation-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ A root delegation is a delegation that doesn't derive its authority from another
100100
Alice is delegating her own authority away, as opposed to *redelegating* permissions she received from a previous delegation.
101101

102102
This example passes an empty `caveats` array, which means Bob can perform any action on Alice's behalf. We recommend [restricting the delegation](../how-to/create-delegation/restrict-delegation.md) by adding caveat enforcers.
103-
For example, Alice can delegate the ability to sepnd her USDC to Bob, limiting the amount to 100 USDC.
103+
For example, Alice can delegate the ability to spend her USDC to Bob, limiting the amount to 100 USDC.
104104

105105
:::warning Important
106106

delegation-toolkit/how-to/create-delegation/restrict-delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const caveats = caveatBuilder
6161
"transfer(address,uint256)"
6262
])
6363
// limitedCalls accepts a number.
64-
// This caveat restricts the caller to only use the delegation one time.
64+
// This caveat restricts the caller to only use the delegation once.
6565
.addCaveat("limitedCalls", 1)
6666
.build();
6767
```

delegation-toolkit/how-to/redeem-delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import TabItem from "@theme/TabItem";
1010
# Redeem a delegation
1111

1212
A delegate can redeem a delegation by submitting either a user operation or a regular transaction,
13-
depending on whether the delegate is a MetaMask smart account or externally owned account (EOA).
13+
depending on whether the delegate is a MetaMask smart account or an externally owned account (EOA).
1414

1515
The redeem transaction is sent to the `DelegationManager` contract, which validates the delegation and executes actions on the delegator's behalf.
1616
To prepare the calldata for the redeem transaction, use the [`redeemDelegation`](../reference/api/delegation.md#redeemdelegation) utility function.

delegation-toolkit/reference/caveats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ caveatBuilder.addCaveat("ownershipTransfer",
658658
## `redeemer`
659659

660660
Limits the addresses that can redeem the delegation.
661-
This caveat is designed for restricting smart contracts or EOAs lacking delegation support,
661+
This caveat is designed to restrict smart contracts or EOAs lacking delegation support,
662662
and can be placed anywhere in the delegation chain to restrict the redeemer.
663663

664664
:::note

developer-tools/dashboard/how-to/dashboard-stats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This data is crucial for optimizing your applications and ensuring they run smoo
2727
- **Last 24 Hours** - The last fully completed 24 consecutive hours.
2828
This is the default.
2929
- **Last 7 Days** - The last fully completed seven consecutive days.
30-
A day appears once it has completed.
30+
A day appears once it has been completed.
3131
- **Last 30 Days** - The last fully completed 30 days.
3232
A day appears once it has completed.
3333

docs/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
236236
- Documented [Snaps custom name resolution](/snaps/features/custom-name-resolution).
237237
([#924](https://github.com/MetaMask/metamask-docs/pull/924))
238238
- Deprecated `snaps-types` and `snaps-ui` packages and updated
239-
[Snaps tutorials](/snaps/learn/tutorials/gas-estimation) to match latest tooling.
239+
[Snaps tutorials](/snaps/learn/tutorials/gas-estimation) to match the latest tooling.
240240
([#1206](https://github.com/MetaMask/metamask-docs/pull/1206) and
241241
[#1210](https://github.com/MetaMask/metamask-docs/pull/1210))
242242
- Documented new [Snaps custom UI](/snaps/features/custom-ui) components and improved examples.

sdk/guides/use-deeplinks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ https://metamask.app.link/send/0x0000000@137?value=1e16
6767
This deeplink starts the process of sending a transaction in the native currency.
6868
If the chain ID is specified, the MetaMask mobile app automatically switches to the correct network.
6969

70-
The example displays the confirmation screen to send 0.01 POL (`1e16` wei) in Polygon (chain ID `137`) to recipient address `0x0000000`.
70+
The example displays the confirmation screen to send 0.01 POL (`1e16` wei) in Polygon (chain ID `137`) to the recipient address `0x0000000`.
7171

7272
### Path parameters
7373

services/how-to/interact-with-erc-20-tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ If `fromBlock` and `toBlock` are omitted, `eth_getLogs` returns the _entire_ cha
141141

142142
:::
143143

144-
This request tells the blockchain to retrieve event logs related to address `0x6B175474E89094C44Da98b954EedeAC495271d0F` emitted in block `0x91F37C` that matches topics `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`, `0x000000000000000000000000ee25e1ba53c225d250861c8e5a9a3e0fe19c790e` and `0x000000000000000000000000dfbaf3e4c7496dad574a1b842bc85b402bdc298d`.
144+
This request tells the blockchain to retrieve event logs related to address `0x6B175474E89094C44Da98b954EedeAC495271d0F` emitted in block `0x91F37C` that match topics `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`, `0x000000000000000000000000ee25e1ba53c225d250861c8e5a9a3e0fe19c790e` and `0x000000000000000000000000dfbaf3e4c7496dad574a1b842bc85b402bdc298d`.
145145

146146
The response returned for this request is an array of events. In this example, only one event for one address matches the specified topics.
147147

snaps/features/cron-jobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ requires the user to enter their password if the wallet is locked.
111111
This interaction can be confusing to the user, since the Snap accesses the data in the background
112112
without the user being aware.
113113

114-
If the cron job requires access to encrypted state, use
114+
If the cron job requires access to encrypted data, use
115115
[`snap_getClientStatus`](../reference/snaps-api.md#snap_getclientstatus) to ensure that MetaMask is
116116
unlocked before accessing state.
117117
This will prevent an unexpected password request, improving the user's experience.

0 commit comments

Comments
 (0)