Change back

This commit is contained in:
Vivek Teega 2024-10-07 23:31:04 +05:30
parent e746b4709c
commit 16b24912cc

View File

@ -292,10 +292,8 @@ Cashier.checkIfTokenTxIsValid = function (tokenTxID, sender, amount) {
floTokenAPI.getTx(tokenTxID).then(tx => {
let parsedTxData = floTokenAPI.util.parseTxData(tx);
console.debug(parsedTxData);
if (parsedTxData.type !== "transfer" || parsedTxData.transferType !== "token"){
debugger
reject([true, "Invalid token transfer type"])
}
if (parsedTxData.type !== "transfer" || parsedTxData.transferType !== "token")
reject([true, "Invalid token transfer type"]);
else if (parsedTxData.tokenAmount !== amount)
reject([true, "Incorrect token amount: " + parsedTxData.tokenAmount]);
else if (parsedTxData.tokenIdentification !== floGlobals.currency)