Skip to content

Commit 454c9c2

Browse files
Fix overflow on marketplace listing (#2088)
1 parent bf89576 commit 454c9c2

File tree

13 files changed

+38
-20
lines changed

13 files changed

+38
-20
lines changed

components/contract-components/contract-deploy-form/custom-contract.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import { LineaTestnet } from "@thirdweb-dev/chains";
3333
import { TransactionButton } from "components/buttons/TransactionButton";
3434
import { NetworkSelectorButton } from "components/selects/NetworkSelectorButton";
3535
import { SolidityInput } from "contract-ui/components/solidity-inputs";
36-
import { verifyContract } from "contract-ui/tabs/sources/page";
3736
import { useTrack } from "hooks/analytics/useTrack";
3837
import { useSupportedChain } from "hooks/chains/configureChains";
3938
import { useTxNotifications } from "hooks/useTxNotifications";

components/contract-components/hooks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,6 @@ export function useCustomContractDeployMutation(
532532
const signer = useSigner();
533533
const deployContext = useDeployContextModal();
534534
const { data: transactions } = useTransactionsForDeploy(ipfsHash);
535-
const compilerMetadata = useContractPublishMetadataFromURI(ipfsHash);
536535
const fullPublishMetadata = useContractFullPublishMetadata(ipfsHash);
537536

538537
const walletConfig = useWalletConfig();

components/layout/app-shell/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { CustomConnectWallet } from "@3rdweb-sdk/react/components/connect-wallet";
2-
import { useAccount } from "@3rdweb-sdk/react/hooks/useApi";
32
import {
43
ButtonGroup,
54
Container,
@@ -88,7 +87,6 @@ export const AppShell: ComponentWithChildren<AppShellProps> = ({
8887

8988
const AppHeader: React.FC = () => {
9089
const { pathname, route } = useRouter();
91-
const { data: account } = useAccount();
9290

9391
return (
9492
<GridItem

components/payments/contracts/payment-contracts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useAllContractList } from "@3rdweb-sdk/react";
22
import { Flex } from "@chakra-ui/react";
33
import { useAddress } from "@thirdweb-dev/react";
44
import { PaymentContractsTable } from "./payment-contracts-table";
5-
import { useAccount, useApiAuthToken } from "@3rdweb-sdk/react/hooks/useApi";
5+
import { useApiAuthToken } from "@3rdweb-sdk/react/hooks/useApi";
66
import { NoWalletConnectedPayments } from "contract-ui/tabs/payments/components/no-wallet-connected-payments";
77
import { validPaymentsChainIds } from "@3rdweb-sdk/react/hooks/usePayments";
88
import { useMemo } from "react";

contract-ui/tabs/listings/components/list-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const CreateListingsForm: React.FC<NFTMintForm> = ({
140140
return {
141141
...nft,
142142
contractAddress: form.watch("contractAddress"),
143-
tokenId: parseInt(nft.metadata.id),
143+
tokenId: nft.metadata.id,
144144
};
145145
}) as WalletNFT[];
146146
}, [ownedNFTs, form]);

graphql/generated_types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4490,8 +4490,8 @@ export type Developer_Auth_Setting_Bool_Exp = {
44904490

44914491
/** unique or primary key constraints on table "developer_auth_setting" */
44924492
export enum Developer_Auth_Setting_Constraint {
4493-
/** unique or primary key constraint on columns "auth_provider", "developer_client_id" */
4494-
DeveloperAuthSettingAuthProviderDeveloperClientIdKey = 'developer_auth_setting_auth_provider_developer_client_id_key',
4493+
/** unique or primary key constraint on columns "auth_provider", "developer_client_id", "deleted_at" */
4494+
DeveloperAuthSettingDeveloperClientIdAuthProviderDelete = 'developer_auth_setting_developer_client_id_auth_provider_delete',
44954495
/** unique or primary key constraint on columns "id" */
44964496
DeveloperAuthSettingPkey = 'developer_auth_setting_pkey'
44974497
}

graphql/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30216,8 +30216,8 @@
3021630216
"interfaces": null,
3021730217
"enumValues": [
3021830218
{
30219-
"name": "developer_auth_setting_auth_provider_developer_client_id_key",
30220-
"description": "unique or primary key constraint on columns \"auth_provider\", \"developer_client_id\"",
30219+
"name": "developer_auth_setting_developer_client_id_auth_provider_delete",
30220+
"description": "unique or primary key constraint on columns \"auth_provider\", \"developer_client_id\", \"deleted_at\"",
3022130221
"isDeprecated": false,
3022230222
"deprecationReason": null
3022330223
},

lib/deployment/template-values.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
SUPPORTED_CHAIN_ID,
3-
getDefaultTrustedForwarders,
4-
} from "@thirdweb-dev/sdk";
1+
import { SUPPORTED_CHAIN_ID } from "@thirdweb-dev/sdk";
52
import type { SolidityType } from "lib/solidity-types";
63

74
interface ReplacementProps {
@@ -36,7 +33,7 @@ const ADDRESS_ARRAY_TEMPLATE_VALUES: TemplateValue[] = [
3633
value: "{{trusted_forwarders}}",
3734
helperText:
3835
"Replaced with the addresses of the trusted (gasless) forwarders for the selected network.",
39-
replacerFunction: (searchValue, replacers) => {
36+
replacerFunction: (searchValue) => {
4037
const trustedForwardersForChain: string[] = [];
4138
return searchValue.replaceAll(
4239
"{{trusted_forwarders}}",

lib/wallet/nfts/alchemy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function transformAlchemyResponseToNFT(
3737
try {
3838
return {
3939
contractAddress: alchemyNFT.contract.address,
40-
tokenId: parseInt(alchemyNFT.id.tokenId, 16),
40+
tokenId: alchemyNFT.id.tokenId,
4141
metadata: shouldDownloadURI(rawUri)
4242
? await StorageSingleton.downloadJSON(
4343
handleArbitraryTokenURI(rawUri),

lib/wallet/nfts/moralis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function transformMoralisResponseToNFT(
3232
try {
3333
return {
3434
contractAddress: moralisNft.token_address,
35-
tokenId: parseInt(moralisNft.token_id, 16),
35+
tokenId: moralisNft.token_id,
3636
metadata: shouldDownloadURI(moralisNft.token_uri)
3737
? await StorageSingleton.downloadJSON(
3838
handleArbitraryTokenURI(moralisNft.token_uri),

0 commit comments

Comments
 (0)