forked from LaconicNetwork/icns-frontend
Fix verification check logic
This commit is contained in:
parent
0944e5c175
commit
357b65b587
@ -9,6 +9,18 @@ export const makeClaimMessage = (
|
|||||||
verificationList: any[],
|
verificationList: any[],
|
||||||
referral?: string,
|
referral?: string,
|
||||||
): CosmwasmExecuteMessageResult => {
|
): CosmwasmExecuteMessageResult => {
|
||||||
|
verificationList = verificationList.filter((verification) => {
|
||||||
|
if (verification.status !== "fulfilled") {
|
||||||
|
console.log("verification", verification);
|
||||||
|
}
|
||||||
|
|
||||||
|
return verification.status === "fulfilled";
|
||||||
|
});
|
||||||
|
|
||||||
|
if (verificationList.length === 0) {
|
||||||
|
throw new Error("Verifications rejected all");
|
||||||
|
}
|
||||||
|
|
||||||
return makeCosmwasmExecMsg(
|
return makeCosmwasmExecMsg(
|
||||||
senderAddress,
|
senderAddress,
|
||||||
REGISTRAR_ADDRESS,
|
REGISTRAR_ADDRESS,
|
||||||
|
Loading…
Reference in New Issue
Block a user