-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Enhance JS section #2450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance JS section #2450
Conversation
Add viem, web3, ethers support
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| const tx = await contract.methods.update('NEW_MESSAGE').send({ from: signer.getAddress() }) | ||
|
|
||
| // Wait for transaction to finish | ||
| const receipt = await tx.wait() |
There was a problem hiding this comment.
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.
Add viem, web3, ethers support
Description
Issue(s) fixed
Fixes #
Preview
Checklist
External contributor checklist
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.
manage-user-accounts,manage-networks,send-transactions/index,send-transactions/batch-transactions,sign-data/index(+siwe),interact-with-contracts, and MetaMask‑exclusivemetamask-exclusive/{batch-requests,use-deeplinks,display-tokens}.evm/connect/guides/javascript/*andevm/connect/guides/wagmi/*; updates quickstarts and tiles insdk/evm/index.provider-apiexamples/links and various intra-doc links.sdk-sidebar.jsto include Quickstart and reorganized Guides.vercel.jsonredirects to new quickstart andmetamask-exclusivepaths.send-transactions/batch-transactionsin multiple versioned guides.markdown.hooks.onBrokenMarkdownLinkstowarnindocusaurus.config.js.Written by Cursor Bugbot for commit 4f51973. This will update automatically on new commits. Configure here.