From 0ff940fbb50568c2e095340bd9f775eeac568fb0 Mon Sep 17 00:00:00 2001 From: hueso Date: Thu, 31 Jul 2025 21:04:02 -0300 Subject: [PATCH] removed redundant getSellerParticipantId causing trouble with buyer flow --- src/blockchain/wallet.ts | 15 --------------- src/components/QrCodeComponent.vue | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/blockchain/wallet.ts b/src/blockchain/wallet.ts index 34851ea..9d1d168 100644 --- a/src/blockchain/wallet.ts +++ b/src/blockchain/wallet.ts @@ -463,18 +463,3 @@ export const getActiveLockAmount = async ( return total; }, 0); }; - -export const getSellerParticipantId = async ( - sellerAddress: Address, - tokenAddress: Address -): Promise => { - const { address, abi, client } = await getContract(); - - const participantId = await client.readContract({ - address, - abi, - functionName: "getPixTarget", - args: [sellerAddress, tokenAddress], - }); - return hexToString(participantId); -}; diff --git a/src/components/QrCodeComponent.vue b/src/components/QrCodeComponent.vue index 19f67ea..8696444 100644 --- a/src/components/QrCodeComponent.vue +++ b/src/components/QrCodeComponent.vue @@ -4,7 +4,7 @@ import CustomButton from "@/components/CustomButton/CustomButton.vue"; import CustomModal from "@/components//CustomModal/CustomModal.vue"; import SpinnerComponent from "@/components/SpinnerComponent.vue"; import { createSolicitation, getSolicitation, type Offer } from "@/utils/bbPay"; -import { getSellerParticipantId } from "@/blockchain/wallet"; +import { getParticipantID } from "@/blockchain/events"; import { getUnreleasedLockById } from "@/blockchain/events"; import QRCode from "qrcode"; @@ -86,7 +86,7 @@ onMounted(async () => { BigInt(props.lockID) ); - const participantId = await getSellerParticipantId( + const participantId = await getParticipantID( sellerAddress, tokenAddress );