Skip to content

[Delegation Toolkit] Improve code snippets#2101

Merged
AyushBherwani1998 merged 7 commits intomainfrom
fix/code-snippets
Jun 24, 2025
Merged

[Delegation Toolkit] Improve code snippets#2101
AyushBherwani1998 merged 7 commits intomainfrom
fix/code-snippets

Conversation

@AyushBherwani1998
Copy link
Member

@AyushBherwani1998 AyushBherwani1998 commented Jun 18, 2025

Description

Improves code snippets

Fixes #

Preview

https://metamask-docs-git-fix-code-snippets-consensys-ddffed67.vercel.app/delegation-toolkit/

Checklist

Complete this checklist before merging your PR:

  • If this PR contains a major change to the documentation content, I have added an entry to the top of the "What's new?" page.
  • The proposed changes have been reviewed and approved by a member of the documentation team.

@AyushBherwani1998 AyushBherwani1998 requested review from a team as code owners June 18, 2025 13:19
@vercel
Copy link

vercel bot commented Jun 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
metamask-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 1:55am

@AyushBherwani1998 AyushBherwani1998 marked this pull request as draft June 18, 2025 13:19
@AyushBherwani1998 AyushBherwani1998 marked this pull request as ready for review June 21, 2025 04:38
Comment on lines 112 to 117
:::info Installation required

To estimate the gas fee, we'll use the [permissionless.js](https://docs.pimlico.io/references/permissionless/) SDK. Please make sure the SDK is installed.

:::

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:::info Installation required
To estimate the gas fee, we'll use the [permissionless.js](https://docs.pimlico.io/references/permissionless/) SDK. Please make sure the SDK is installed.
:::

Can you add this to the prerequisites section instead?

[Install the permissionless.js SDK.](https://docs.pimlico.io/references/permissionless/)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a prerequisite for sending user operation, but a prerequisite for estimating fees when using Pimlico's bundler. If someone wishes to uses Zerodev, thirdWeb, or some other bundler it won't be a prerequisite for them.

Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com>
Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com>
Copy link
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@AyushBherwani1998 AyushBherwani1998 merged commit 48f8111 into main Jun 24, 2025
18 checks passed
@AyushBherwani1998 AyushBherwani1998 deleted the fix/code-snippets branch June 24, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants