From f70f415c9d8f3d186905f7c6521ead02c1a87996 Mon Sep 17 00:00:00 2001 From: samuelea Date: Wed, 29 May 2024 13:31:41 -0400 Subject: [PATCH] clean up chainid --- examples/react/src/components/Connected.tsx | 2 +- packages/checkout/src/views/TransactionSuccess.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/react/src/components/Connected.tsx b/examples/react/src/components/Connected.tsx index cdcdc025..5c1b8bc1 100644 --- a/examples/react/src/components/Connected.tsx +++ b/examples/react/src/components/Connected.tsx @@ -249,7 +249,7 @@ export const Connected = () => { const onCheckoutInfoConfirm = () => { setIsCheckoutInfoModalOpen(false) if (checkoutOrderId !== '' && checkoutTokenContractAddress !== '' && checkoutTokenId !== '') { - const chainId = 137 + const chainId = ChainId.POLYGON const orderbookAddress = '0xB537a160472183f2150d42EB1c3DD6684A55f74c' const recipientAddress = address || '' const nftQuantity = '1' diff --git a/packages/checkout/src/views/TransactionSuccess.tsx b/packages/checkout/src/views/TransactionSuccess.tsx index 3c617305..2f1a34d0 100644 --- a/packages/checkout/src/views/TransactionSuccess.tsx +++ b/packages/checkout/src/views/TransactionSuccess.tsx @@ -11,7 +11,7 @@ export const TransactionSuccess = () => { const nav = useNavigation() const navigation = nav.navigation as TransactionSuccessNavigation - const chainId = settings?.creditCardCheckout?.chainId || 137 + const chainId = settings?.creditCardCheckout?.chainId || ChainId.POLYGON const network = sequence.network.allNetworks.find(n => n.chainId === chainId) useEffect(() => {