Skip to content

Commit bf3b25d

Browse files
committed
added magic eden payment intent
1 parent ac34e9e commit bf3b25d

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

examples/react/src/components/Connected.tsx

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,22 @@ export const Connected = () => {
365365

366366
// const chainId = 137
367367

368-
// Forte payment testnet testing
368+
// Forte payment testnet testing opensea
369+
// const currencyAddress = zeroAddress
370+
// const salesContractAddress = '0x1130e2e03f682f05f298fd702787d9bd0bf94316'
371+
// const collectionAddress = '0xb496d64e1fe4f3465fb83f3fd8cb50d8e227101b'
372+
// const price = '600000000000000'
373+
// const contractId = ''
374+
// const chainId = 11155111
375+
376+
// Forte payment testnet testing magiceden
369377
const currencyAddress = zeroAddress
370-
const salesContractAddress = '0x1130e2e03f682f05f298fd702787d9bd0bf94316'
371-
const collectionAddress = '0xb496d64e1fe4f3465fb83f3fd8cb50d8e227101b'
372-
const price = '600000000000000'
378+
const salesContractAddress = '0x0000000000000068F116a894984e2DB1123eB395'
379+
const collectionAddress = '0xdeb398f41ccd290ee5114df7e498cf04fac916cb'
380+
const price = '100000000000000'
373381
const contractId = ''
374382

375-
const chainId = 11155111
383+
const chainId = 137
376384

377385
const collectibles = [
378386
{
@@ -416,13 +424,17 @@ export const Connected = () => {
416424
// protocol: 'mint'
417425
// },
418426
// Config for seaport testnet
427+
// forteConfig: {
428+
// protocol: 'seaport',
429+
// orderHash: '0xa29984c1892bb28bc35170a0e7e4db64ceacfbd20dc5576bd67f1aae9dd678a3',
430+
// // listings with amount > 1 are bugged
431+
// // orderHash: '0x832b698e52508849fe533fdef53d6d9674be4f43eb1a2eb3415e46041f087af9',
432+
// seaportProtocolAddress: '0x0000000000000068F116a894984e2DB1123eB395',
433+
// sellerAddress: '0x184D4F89ad34bb0491563787ca28118273402986'
434+
// },
419435
forteConfig: {
420-
protocol: 'seaport',
421-
orderHash: '0xa29984c1892bb28bc35170a0e7e4db64ceacfbd20dc5576bd67f1aae9dd678a3',
422-
// listings with amount > 1 are bugged
423-
// orderHash: '0x832b698e52508849fe533fdef53d6d9674be4f43eb1a2eb3415e46041f087af9',
424-
seaportProtocolAddress: '0x0000000000000068F116a894984e2DB1123eB395',
425-
sellerAddress: '0x184D4F89ad34bb0491563787ca28118273402986'
436+
protocol: 'magiceden',
437+
sellerAddress: '0xCb88b6315507e9d8c35D81AFB7F190aB6c3227C9'
426438
},
427439
copyrightText: 'ⓒ2024 Sequence',
428440
onSuccess: (txnHash?: string) => {

packages/checkout/src/api/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ export const createFortePaymentIntent = async (forteApiUrl: string, args: Create
385385
} else if (protocolConfig.protocol == 'magiceden') {
386386
listingData = {
387387
protocol: protocolConfig.protocol,
388-
auction_house: protocolConfig.auctionHouse,
389-
token_address: nftName
388+
auction_house: targetContractAddress,
389+
token_address: nftAddress
390390
}
391391
}
392392

packages/checkout/src/contexts/CheckoutModal.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export interface ForteSeaportConfig {
3838

3939
export interface ForteMagicedenConfig {
4040
protocol: 'magiceden'
41-
auctionHouse: string
4241
sellerAddress: string
4342
}
4443

0 commit comments

Comments
 (0)