Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/checkout/src/api/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ export const createFortePaymentIntent = async (
blockchain: forteBlockchainName,
idempotencyKey: idempotencyKey,
buyer: {
id: recipientAddress,
id: recipientAddress.toLowerCase(),
wallet: {
address: recipientAddress,
address: recipientAddress.toLowerCase(),
blockchain: forteBlockchainName
}
}
Expand Down Expand Up @@ -424,7 +424,7 @@ export const createFortePaymentIntent = async (
],
seller: {
wallet: {
address: protocolConfig.sellerAddress || '',
address: protocolConfig.sellerAddress.toLowerCase(),
blockchain: forteBlockchainName
}
}
Expand Down
20 changes: 2 additions & 18 deletions packages/connect/src/utils/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,26 +206,10 @@ export const waitForTransactionReceipt = async ({
publicClient,
confirmations
}: WaitForTransactionReceiptInput): Promise<TransactionReceipt> => {
const receiptPromise = new Promise<TransactionReceipt>(async (resolve, reject) => {
await indexerClient.subscribeReceipts(
{
filter: {
txnHash
}
},
{
onMessage: ({ receipt }) => {
resolve(receipt)
},
onError: () => {
reject('Transaction receipt not found')
}
}
)
const { receipt } = await indexerClient.fetchTransactionReceipt({
txnHash
})

const receipt = await receiptPromise

if (confirmations) {
const blockConfirmationPromise = new Promise<void>(resolve => {
const unwatch = publicClient.watchBlocks({
Expand Down