Skip to content

Commit

Permalink
clean up chainid
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed May 29, 2024
1 parent 85446d9 commit f70f415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/react/src/components/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/checkout/src/views/TransactionSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit f70f415

Please sign in to comment.