Skip to content

Commit e386ac9

Browse files
committed
Update page.mdx (#6270)
Update "extension" to "extensions" <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex -->
1 parent 0574eac commit e386ac9

File tree

1 file changed

+2
-2
lines changed
  • apps/portal/src/app/react/v5/migrate/contracts

1 file changed

+2
-2
lines changed

apps/portal/src/app/react/v5/migrate/contracts/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Check out the list of over 100 prebuilt extensions [here](/typescript/v5/extensi
3333

3434
Example: Import an ERC1155 "read" extension, for checking the balance of a wallet
3535
```tsx
36-
import { balanceOf } from "thirdweb/extension/erc1155";
36+
import { balanceOf } from "thirdweb/extensions/erc1155";
3737

3838
const transaction = balanceOf({
3939
contract,
@@ -169,4 +169,4 @@ function App() {
169169
Claim
170170
</TransactionButton>
171171
}
172-
```
172+
```

0 commit comments

Comments
 (0)