Added debugger for testing
This commit is contained in:
parent
386723eea0
commit
e746b4709c
@ -292,8 +292,10 @@ Cashier.checkIfTokenTxIsValid = function (tokenTxID, sender, amount) {
|
|||||||
floTokenAPI.getTx(tokenTxID).then(tx => {
|
floTokenAPI.getTx(tokenTxID).then(tx => {
|
||||||
let parsedTxData = floTokenAPI.util.parseTxData(tx);
|
let parsedTxData = floTokenAPI.util.parseTxData(tx);
|
||||||
console.debug(parsedTxData);
|
console.debug(parsedTxData);
|
||||||
if (parsedTxData.type !== "transfer" || parsedTxData.transferType !== "token")
|
if (parsedTxData.type !== "transfer" || parsedTxData.transferType !== "token"){
|
||||||
reject([true, "Invalid token transfer type"]);
|
debugger
|
||||||
|
reject([true, "Invalid token transfer type"])
|
||||||
|
}
|
||||||
else if (parsedTxData.tokenAmount !== amount)
|
else if (parsedTxData.tokenAmount !== amount)
|
||||||
reject([true, "Incorrect token amount: " + parsedTxData.tokenAmount]);
|
reject([true, "Incorrect token amount: " + parsedTxData.tokenAmount]);
|
||||||
else if (parsedTxData.tokenIdentification !== floGlobals.currency)
|
else if (parsedTxData.tokenIdentification !== floGlobals.currency)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user