Skip to content

Commit 1641187

Browse files
Remove pack contract documentation and update redirects
Co-authored-by: samina <[email protected]>
1 parent 80c4c8a commit 1641187

File tree

4 files changed

+31
-62
lines changed

4 files changed

+31
-62
lines changed

apps/portal/redirects.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ const contractRedirects = {
805805
"/contracts/explore/pre-built-contracts/nft-drop",
806806
"/pre-built-contracts/open-edition-erc721":
807807
"/contracts/explore/pre-built-contracts/open-edition",
808-
"/pre-built-contracts/pack": "/contracts/explore/pre-built-contracts/pack",
808+
"/pre-built-contracts/pack": "/contracts",
809809
"/pre-built-contracts/signature-drop": "/contracts",
810810
"/pre-built-contracts/split": "/contracts/explore/pre-built-contracts/split",
811811
"/pre-built-contracts/stake-erc20":
@@ -818,6 +818,8 @@ const contractRedirects = {
818818
"/pre-built-contracts/token-drop":
819819
"/contracts/explore/pre-built-contracts/token-drop",
820820
"/pre-built-contracts/vote": "/contracts/explore/pre-built-contracts/vote",
821+
// pack contract deprecation redirect
822+
"/contracts/explore/pre-built-contracts/pack": "/contracts",
821823
//publish
822824
"/publish": "/contracts/publish/overview",
823825
"/publish/deployment-options": "/contracts/publish/publish-options",
@@ -942,7 +944,7 @@ const otherRedirects = {
942944
// solidity sdk
943945
"/contracts/nft-drop": "/contracts/explore/pre-built-contracts/nft-drop",
944946
"/contracts/nfts-and-tokens": "/contracts",
945-
"/contracts/pack": "/contracts/explore/pre-built-contracts/pack",
947+
"/contracts/pack": "/contracts",
946948
"/contracts/split": "/contracts/explore/pre-built-contracts/split",
947949
"/contracts/token": "/contracts/explore/pre-built-contracts/token",
948950
"/contracts/token-drop": "/contracts/explore/pre-built-contracts/token-drop",

apps/portal/src/app/contracts/explore/pre-built-contracts/pack/page.mdx

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { createMetadata, Details } from "@doc";
2+
3+
export const metadata = createMetadata({
4+
title: "Contracts FAQs",
5+
description: "Frequently asked questions about thirdweb contracts",
6+
image: {
7+
title: "Contracts FAQs",
8+
icon: "contract",
9+
},
10+
});
11+
12+
# Contracts FAQs
13+
14+
<Details summary="Why can I no longer deploy a pack contract?">
15+
Pack contracts were officially deprecated after the Pectra release from Ethereum. The pack contract implementation is incompatible with the Pectra update, which introduced breaking changes to the Ethereum protocol. As a result, support for pack contracts has been removed from thirdweb's deployment tools to ensure compatibility and security.
16+
17+
If you need similar functionality, consider using:
18+
- **Edition Drop contracts** for distributing multiple quantities of NFTs
19+
- **Marketplace contracts** for trading and bundle functionality
20+
- **Custom smart contracts** built with our modular contract framework
21+
22+
For existing pack contracts, they will continue to function on-chain, but new deployments are no longer supported.
23+
</Details>

apps/portal/src/app/contracts/sidebar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,6 @@ export const sidebar: SideBar = {
212212
href: `${prebuiltSlug}/multiwrap`,
213213
name: "Multiwrap",
214214
},
215-
{
216-
href: `${prebuiltSlug}/pack`,
217-
name: "Pack",
218-
},
219215
{
220216
href: `${prebuiltSlug}/split`,
221217
name: "Split",
@@ -810,6 +806,10 @@ export const sidebar: SideBar = {
810806
{
811807
isCollapsible: false,
812808
links: [
809+
{
810+
href: "/contracts/faq",
811+
name: "FAQs",
812+
},
813813
{
814814
links: [
815815
{

0 commit comments

Comments
 (0)