diff --git a/delegation-toolkit/concepts/environment.md b/delegation-toolkit/concepts/environment.md index f835c8a2fe7..668a844e6ea 100644 --- a/delegation-toolkit/concepts/environment.md +++ b/delegation-toolkit/concepts/environment.md @@ -90,7 +90,7 @@ You can deploy the contracts using any method, but the toolkit provides a conven 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) to deploy the contracts and resolve the `DeleGatorEnvironment`. -Your wallet must have sufficient native token balance to deploy the contracts. +Your wallet must have a sufficient native token balance to deploy the contracts. diff --git a/delegation-toolkit/get-started/delegation-quickstart.md b/delegation-toolkit/get-started/delegation-quickstart.md index 1a51ab8ebe3..04db513d813 100644 --- a/delegation-toolkit/get-started/delegation-quickstart.md +++ b/delegation-toolkit/get-started/delegation-quickstart.md @@ -100,7 +100,7 @@ A root delegation is a delegation that doesn't derive its authority from another Alice is delegating her own authority away, as opposed to *redelegating* permissions she received from a previous delegation. 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. -For example, Alice can delegate the ability to sepnd her USDC to Bob, limiting the amount to 100 USDC. +For example, Alice can delegate the ability to spend her USDC to Bob, limiting the amount to 100 USDC. :::warning Important diff --git a/delegation-toolkit/how-to/create-delegation/restrict-delegation.md b/delegation-toolkit/how-to/create-delegation/restrict-delegation.md index bd362d65a0d..ba82bb6d119 100644 --- a/delegation-toolkit/how-to/create-delegation/restrict-delegation.md +++ b/delegation-toolkit/how-to/create-delegation/restrict-delegation.md @@ -61,7 +61,7 @@ const caveats = caveatBuilder "transfer(address,uint256)" ]) // limitedCalls accepts a number. - // This caveat restricts the caller to only use the delegation one time. + // This caveat restricts the caller to only use the delegation once. .addCaveat("limitedCalls", 1) .build(); ``` diff --git a/delegation-toolkit/how-to/redeem-delegation.md b/delegation-toolkit/how-to/redeem-delegation.md index 4db41559422..803dc079a09 100644 --- a/delegation-toolkit/how-to/redeem-delegation.md +++ b/delegation-toolkit/how-to/redeem-delegation.md @@ -10,7 +10,7 @@ import TabItem from "@theme/TabItem"; # Redeem a delegation A delegate can redeem a delegation by submitting either a user operation or a regular transaction, -depending on whether the delegate is a MetaMask smart account or externally owned account (EOA). +depending on whether the delegate is a MetaMask smart account or an externally owned account (EOA). The redeem transaction is sent to the `DelegationManager` contract, which validates the delegation and executes actions on the delegator's behalf. To prepare the calldata for the redeem transaction, use the [`redeemDelegation`](../reference/api/delegation.md#redeemdelegation) utility function. diff --git a/delegation-toolkit/reference/caveats.md b/delegation-toolkit/reference/caveats.md index 14d5e081c38..3d2e15a911d 100644 --- a/delegation-toolkit/reference/caveats.md +++ b/delegation-toolkit/reference/caveats.md @@ -658,7 +658,7 @@ caveatBuilder.addCaveat("ownershipTransfer", ## `redeemer` Limits the addresses that can redeem the delegation. -This caveat is designed for restricting smart contracts or EOAs lacking delegation support, +This caveat is designed to restrict smart contracts or EOAs lacking delegation support, and can be placed anywhere in the delegation chain to restrict the redeemer. :::note diff --git a/developer-tools/dashboard/how-to/dashboard-stats.md b/developer-tools/dashboard/how-to/dashboard-stats.md index 9851dfb3ab2..14ea7407854 100644 --- a/developer-tools/dashboard/how-to/dashboard-stats.md +++ b/developer-tools/dashboard/how-to/dashboard-stats.md @@ -27,7 +27,7 @@ This data is crucial for optimizing your applications and ensuring they run smoo - **Last 24 Hours** - The last fully completed 24 consecutive hours. This is the default. - **Last 7 Days** - The last fully completed seven consecutive days. - A day appears once it has completed. + A day appears once it has been completed. - **Last 30 Days** - The last fully completed 30 days. A day appears once it has completed. diff --git a/docs/whats-new.md b/docs/whats-new.md index 6db29175dd4..0cbca14b52c 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -236,7 +236,7 @@ of the [MetaMask developer page](https://metamask.io/developer/). - Documented [Snaps custom name resolution](/snaps/features/custom-name-resolution). ([#924](https://github.com/MetaMask/metamask-docs/pull/924)) - Deprecated `snaps-types` and `snaps-ui` packages and updated - [Snaps tutorials](/snaps/learn/tutorials/gas-estimation) to match latest tooling. + [Snaps tutorials](/snaps/learn/tutorials/gas-estimation) to match the latest tooling. ([#1206](https://github.com/MetaMask/metamask-docs/pull/1206) and [#1210](https://github.com/MetaMask/metamask-docs/pull/1210)) - Documented new [Snaps custom UI](/snaps/features/custom-ui) components and improved examples. diff --git a/sdk/guides/use-deeplinks.md b/sdk/guides/use-deeplinks.md index 37bf69936a0..e9445e7f790 100644 --- a/sdk/guides/use-deeplinks.md +++ b/sdk/guides/use-deeplinks.md @@ -67,7 +67,7 @@ https://metamask.app.link/send/0x0000000@137?value=1e16 This deeplink starts the process of sending a transaction in the native currency. If the chain ID is specified, the MetaMask mobile app automatically switches to the correct network. -The example displays the confirmation screen to send 0.01 POL (`1e16` wei) in Polygon (chain ID `137`) to recipient address `0x0000000`. +The example displays the confirmation screen to send 0.01 POL (`1e16` wei) in Polygon (chain ID `137`) to the recipient address `0x0000000`. ### Path parameters diff --git a/services/how-to/interact-with-erc-20-tokens.md b/services/how-to/interact-with-erc-20-tokens.md index 90eec10c6ed..7149287b3f5 100644 --- a/services/how-to/interact-with-erc-20-tokens.md +++ b/services/how-to/interact-with-erc-20-tokens.md @@ -141,7 +141,7 @@ If `fromBlock` and `toBlock` are omitted, `eth_getLogs` returns the _entire_ cha ::: -This request tells the blockchain to retrieve event logs related to address `0x6B175474E89094C44Da98b954EedeAC495271d0F` emitted in block `0x91F37C` that matches topics `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`, `0x000000000000000000000000ee25e1ba53c225d250861c8e5a9a3e0fe19c790e` and `0x000000000000000000000000dfbaf3e4c7496dad574a1b842bc85b402bdc298d`. +This request tells the blockchain to retrieve event logs related to address `0x6B175474E89094C44Da98b954EedeAC495271d0F` emitted in block `0x91F37C` that match topics `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef`, `0x000000000000000000000000ee25e1ba53c225d250861c8e5a9a3e0fe19c790e` and `0x000000000000000000000000dfbaf3e4c7496dad574a1b842bc85b402bdc298d`. The response returned for this request is an array of events. In this example, only one event for one address matches the specified topics. diff --git a/snaps/features/cron-jobs.md b/snaps/features/cron-jobs.md index 0ee6b04b0dd..7d0857776a2 100644 --- a/snaps/features/cron-jobs.md +++ b/snaps/features/cron-jobs.md @@ -111,7 +111,7 @@ requires the user to enter their password if the wallet is locked. This interaction can be confusing to the user, since the Snap accesses the data in the background without the user being aware. -If the cron job requires access to encrypted state, use +If the cron job requires access to encrypted data, use [`snap_getClientStatus`](../reference/snaps-api.md#snap_getclientstatus) to ensure that MetaMask is unlocked before accessing state. This will prevent an unexpected password request, improving the user's experience. diff --git a/snaps/features/custom-ui/user-defined-components.md b/snaps/features/custom-ui/user-defined-components.md index a96cf2f3ffe..b7e7984d382 100644 --- a/snaps/features/custom-ui/user-defined-components.md +++ b/snaps/features/custom-ui/user-defined-components.md @@ -122,7 +122,7 @@ export const Insight = ({ from, to }) => { ## Return a list To return a list of elements, you can use an array. -In the following example, the `Accounts` components receives an array of accounts as props, and uses +In the following example, the `Accounts` component receives an array of accounts as props, and uses the array to display a list of accounts using `Array.map`: ```jsx title="Accounts.jsx"