Temporary fix for Smart Contract Triggers
This commit is contained in:
parent
ad155686ea
commit
82dc15c435
11
index.html
11
index.html
@ -258,6 +258,10 @@
|
|||||||
page = document.createElement("div");
|
page = document.createElement("div");
|
||||||
page.classList.add("page");
|
page.classList.add("page");
|
||||||
page.id = "transaction_page";
|
page.id = "transaction_page";
|
||||||
|
// todo : This is a temporary fix. Fix this on the Database and API level
|
||||||
|
if(type =='smartContractPays' || type ==' smartContractPays'){
|
||||||
|
name = ''
|
||||||
|
}
|
||||||
page.innerHTML = `
|
page.innerHTML = `
|
||||||
<div class='head'>
|
<div class='head'>
|
||||||
<h5 class="label">${type}</h5>
|
<h5 class="label">${type}</h5>
|
||||||
@ -1640,7 +1644,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getTxInfo(thisTx) {
|
async function getTxInfo(thisTx) {
|
||||||
const response = await fetch(`${tokenapiUrl}/api/v1.0/getTransactionDetails/${thisTx}`),
|
var response = await fetch(`${tokenapiUrl}/api/v1.0/getTransactionDetails/${thisTx}`),
|
||||||
transaction = await response.json(),
|
transaction = await response.json(),
|
||||||
transactionHash = transaction.transactionHash,
|
transactionHash = transaction.transactionHash,
|
||||||
{ flodata, tokenAmount, tokenIdentification, type } = transaction.parsedFloData,
|
{ flodata, tokenAmount, tokenIdentification, type } = transaction.parsedFloData,
|
||||||
@ -1653,10 +1657,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(transaction)
|
console.log(transaction)
|
||||||
|
// todo - temporary fixes below. Fix these on the Databse and API level
|
||||||
let transactionType = ''
|
let transactionType = ''
|
||||||
if( type=='transfer'){
|
if( type=='transfer'){
|
||||||
transactionType = transaction.parsedFloData?.transferType
|
transactionType = transaction.parsedFloData?.transferType
|
||||||
}
|
}
|
||||||
|
if( type=='smartContractPays'){
|
||||||
|
tokenAmount = '-'
|
||||||
|
flodata = transaction.transactionDetails.floData
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
type: `${transactionType} ${type}`,
|
type: `${transactionType} ${type}`,
|
||||||
name: tokenIdentification,
|
name: tokenIdentification,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user