Skip to content

Commit 9fd77a4

Browse files
committed
fix links
1 parent 26fdac4 commit 9fd77a4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

delegation-toolkit/get-started/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This page provides instructions to install and set up the MetaMask Delegation To
1717
- Install [Yarn](https://yarnpkg.com/),
1818
[npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), or another package manager.
1919
- If you plan to use any smart contracts (for example, to
20-
[create a custom caveat enforcer](../guides/delegation/create-custom-caveat-enforcer.md)),
20+
[create a custom caveat enforcer](../tutorials/create-custom-caveat-enforcer.md)),
2121
install [Foundry](https://book.getfoundry.sh/getting-started/installation).
2222

2323
## Steps
@@ -33,7 +33,7 @@ npm install @metamask/delegation-toolkit
3333
### 2. (Optional) Install the contracts
3434

3535
If you plan to extend the Delegation Framework smart contracts (for example, to
36-
[create a custom caveat enforcer](../guides/delegation/create-custom-caveat-enforcer.md)), install
36+
[create a custom caveat enforcer](../tutorials/create-custom-caveat-enforcer.md)), install
3737
the contract package using Foundry's command-line tool, Forge:
3838

3939
```bash

delegation-toolkit/tutorials/create-custom-caveat-enforcer.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import TabItem from "@theme/TabItem";
88

99
# Create a custom caveat enforcer
1010

11-
This tutorial walks you through creating a custom [caveat enforcer](../concepts/caveat-enforcers.md) and applying it to a [delegation](../concepts/delegation.md).
11+
This tutorial walks you through creating a custom [caveat enforcer](../concepts/delegation/caveat-enforcers.md) and applying it to a [delegation](../concepts/delegation/index.md).
1212

1313
The MetaMask Delegation Toolkit includes [out-of-the-box caveat enforcers](../reference/caveats.md) that define rules and restrictions for common use cases.
1414
For more specific control or other use cases, you can create custom caveat enforcers.
1515
In this tutorial, you'll create and apply a caveat enforcer that only allows a delegation to be redeemed after a specific timestamp.
1616

1717
## Prerequisites
1818

19-
- [Install and set up the Delegation Toolkit](../../get-started/install.md) in your project.
20-
- [Configure the Delegation Toolkit.](../configure.md)
19+
- [Install and set up the Delegation Toolkit](../get-started/install.md) in your project.
20+
- [Configure the Delegation Toolkit.](../guides/configure.md)
2121
- [Install Foundry and Forge.](https://getfoundry.sh/introduction/installation)
2222
- Get an [Infura API key](/developer-tools/dashboard/get-started/create-api) from the MetaMask Developer dashboard.
2323
- Have a MetaMask account with some Sepolia ETH to deploy your contract.
@@ -88,7 +88,7 @@ The Forge CLI will display the address of the deployed caveat enforcer.
8888
### 3. Apply the caveat enforcer
8989

9090
Specify the address of the deployed `AfterTimestampEnforcer.sol` contract, add it to the caveat builder, and create a delegation.
91-
Learn more about [applying caveats to a delegation](../guides/create-delegation/restrict-delegation.md).
91+
Learn more about [applying caveats to a delegation](../guides/delegation/restrict-delegation.md).
9292

9393
The following code snippet uses the custom caveat enforcer to create a delegation granting
9494
a 1,000,000 wei allowance that becomes spendable one hour after it is created:
@@ -162,4 +162,4 @@ export const delegatorSmartAccount = await toMetaMaskSmartAccount({
162162
You've successfully created, deployed, and applied a custom caveat enforcer!
163163

164164
For production use cases, you might need to add additional caveats to restrict the delegation further.
165-
Learn more about [caveat enforcers](../concepts/caveat-enforcers.md).
165+
Learn more about [caveat enforcers](../concepts/delegation/caveat-enforcers.md).

0 commit comments

Comments
 (0)