From e386ac9476c4789121411e2cb4e1ba2b0f1e578d Mon Sep 17 00:00:00 2001 From: warengonzaga <15052701+warengonzaga@users.noreply.github.com> Date: Mon, 17 Feb 2025 03:01:03 +0000 Subject: [PATCH] Update page.mdx (#6270) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update "extension" to "extensions" --- ## PR-Codex overview This PR updates the import path for the `balanceOf` function from the `thirdweb/extension/erc1155` to `thirdweb/extensions/erc1155`, ensuring that the correct module is referenced for checking wallet balances. ### Detailed summary - Changed the import statement for `balanceOf` from `thirdweb/extension/erc1155` to `thirdweb/extensions/erc1155`. - Added a newline at the end of the file. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- apps/portal/src/app/react/v5/migrate/contracts/page.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/portal/src/app/react/v5/migrate/contracts/page.mdx b/apps/portal/src/app/react/v5/migrate/contracts/page.mdx index 64431b66a76..6d586e6f56d 100644 --- a/apps/portal/src/app/react/v5/migrate/contracts/page.mdx +++ b/apps/portal/src/app/react/v5/migrate/contracts/page.mdx @@ -33,7 +33,7 @@ Check out the list of over 100 prebuilt extensions [here](/typescript/v5/extensi Example: Import an ERC1155 "read" extension, for checking the balance of a wallet ```tsx -import { balanceOf } from "thirdweb/extension/erc1155"; +import { balanceOf } from "thirdweb/extensions/erc1155"; const transaction = balanceOf({ contract, @@ -169,4 +169,4 @@ function App() { Claim } -``` \ No newline at end of file +```