removed redundant getSellerParticipantId causing trouble with buyer flow
This commit is contained in:
parent
c3d770f713
commit
0ff940fbb5
@ -463,18 +463,3 @@ export const getActiveLockAmount = async (
|
|||||||
return total;
|
return total;
|
||||||
}, 0);
|
}, 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);
|
|
||||||
};
|
|
||||||
|
@ -4,7 +4,7 @@ import CustomButton from "@/components/CustomButton/CustomButton.vue";
|
|||||||
import CustomModal from "@/components//CustomModal/CustomModal.vue";
|
import CustomModal from "@/components//CustomModal/CustomModal.vue";
|
||||||
import SpinnerComponent from "@/components/SpinnerComponent.vue";
|
import SpinnerComponent from "@/components/SpinnerComponent.vue";
|
||||||
import { createSolicitation, getSolicitation, type Offer } from "@/utils/bbPay";
|
import { createSolicitation, getSolicitation, type Offer } from "@/utils/bbPay";
|
||||||
import { getSellerParticipantId } from "@/blockchain/wallet";
|
import { getParticipantID } from "@/blockchain/events";
|
||||||
import { getUnreleasedLockById } from "@/blockchain/events";
|
import { getUnreleasedLockById } from "@/blockchain/events";
|
||||||
import QRCode from "qrcode";
|
import QRCode from "qrcode";
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ onMounted(async () => {
|
|||||||
BigInt(props.lockID)
|
BigInt(props.lockID)
|
||||||
);
|
);
|
||||||
|
|
||||||
const participantId = await getSellerParticipantId(
|
const participantId = await getParticipantID(
|
||||||
sellerAddress,
|
sellerAddress,
|
||||||
tokenAddress
|
tokenAddress
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user