Update index.html

This commit is contained in:
sairaj mote 2023-09-25 03:13:07 +05:30
parent deb352cf03
commit 008231738e

View File

@ -2856,7 +2856,7 @@
let filteredSmartContracts = floGlobals.smartContracts || [];
if (type) {
filteredSmartContracts = filteredSmartContracts.filter(sc => {
if (type === 'external-trigger') {
if (subType && 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;