removed redundant getSellerParticipantId causing trouble with buyer flow

This commit is contained in:
hueso
2025-08-01 14:07:28 -03:00
parent c3d770f713
commit 9b325ac917
2 changed files with 3 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
import { formatEther, hexToString, type Address } from "viem";
import { formatEther, type Address } from "viem";
import { useUser } from "@/composables/useUser";
import { getPublicClient, getWalletClient, getContract } from "./provider";
@@ -463,18 +463,3 @@ export const getActiveLockAmount = async (
return total;
}, 0);
};
export const getSellerParticipantId = async (
sellerAddress: Address,
tokenAddress: Address
): Promise<string> => {
const { address, abi, client } = await getContract();
const participantId = await client.readContract({
address,
abi,
functionName: "getPixTarget",
args: [sellerAddress, tokenAddress],
});
return hexToString(participantId);
};