Update index.html

This commit is contained in:
sairaj mote 2023-09-25 03:11:22 +05:30
parent 30d4a0e6bb
commit 36dbf379b1

View File

@ -2856,8 +2856,8 @@
let filteredSmartContracts = floGlobals.smartContracts || [];
if (type) {
filteredSmartContracts = filteredSmartContracts.filter(sc => {
if (type === 'external-trigger') {
return sc.status !== 'active'; // only inactive contracts can be triggered externally
if (subType === 'external-trigger') {
return sc.status === 'expired'; // only inactive contracts can be triggered externally
} else if (type === 'continuos-event' && dynamic) {
return sc.status === 'active' && sc.contractType === type && sc.oracle_address;
} else {