Skip to content

Conversation

@shahbaz17
Copy link
Member

@shahbaz17 shahbaz17 commented Nov 10, 2025

Add viem, web3, ethers support

Description

Issue(s) fixed

Fixes #

Preview

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

External contributor checklist

  • I've read the contribution guidelines.
  • I've created a new issue (or assigned myself to an existing issue) describing what this PR addresses.

Note

Restructures EVM SDK docs into new Quickstart and Guides with multi-library (viem/web3.js/ethers/Wagmi) examples, updates sidebar and redirects, fixes links, and relaxes markdown link handling to warnings.

  • SDK EVM docs:
    • Information architecture: Consolidates/renames JavaScript/Wagmi pages into unified Guides and adds a Quickstart category.
    • New/expanded guides: manage-user-accounts, manage-networks, send-transactions/index, send-transactions/batch-transactions, sign-data/index (+siwe), interact-with-contracts, and MetaMask‑exclusive metamask-exclusive/{batch-requests,use-deeplinks,display-tokens}.
    • Examples: Adds viem, web3.js, ethers.js, Ethereum API, and Wagmi code paths across guides.
    • Removals/Migrations: Deletes legacy evm/connect/guides/javascript/* and evm/connect/guides/wagmi/*; updates quickstarts and tiles in sdk/evm/index.
    • Reference tweaks: Updates provider-api examples/links and various intra-doc links.
  • Navigation/Redirects:
    • Updates sdk-sidebar.js to include Quickstart and reorganized Guides.
    • Updates vercel.json redirects to new quickstart and metamask-exclusive paths.
  • Smart Accounts Kit + versioned docs:
    • Fixes links to send-transactions/batch-transactions in multiple versioned guides.
  • Site config:
    • Sets markdown.hooks.onBrokenMarkdownLinks to warn in docusaurus.config.js.

Written by Cursor Bugbot for commit 4f51973. This will update automatically on new commits. Configure here.

Add viem, web3, ethers support
@shahbaz17 shahbaz17 requested review from a team as code owners November 10, 2025 07:43
@vercel
Copy link

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
metamask-docs Ready Ready Preview Comment Nov 27, 2025 6:32am

@shahbaz17 shahbaz17 changed the title Enhance JS section Enhance JS section {WIP} Nov 10, 2025
const tx = await contract.methods.update('NEW_MESSAGE').send({ from: signer.getAddress() })

// Wait for transaction to finish
const receipt = await tx.wait()
Copy link

Choose a reason for hiding this comment

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

Bug: Invalid method call on web3 transaction

The code calls tx.wait() on a web3.js transaction, but web3.js transactions don't have a wait() method—that's an ethers.js pattern. In web3.js, the send() method already returns a receipt when the transaction is mined, so this line will throw a TypeError.

Fix in Cursor Fix in Web

@shahbaz17 shahbaz17 merged commit b4716d6 into sdk-new-structure Nov 27, 2025
5 checks passed
@shahbaz17 shahbaz17 deleted the improve-js-sections branch November 27, 2025 06:51
@shahbaz17 shahbaz17 changed the title Enhance JS section {WIP} Enhance JS section Nov 27, 2025
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