Update index.html
This commit is contained in:
parent
36dbf379b1
commit
b3ce434325
@ -2853,10 +2853,11 @@
|
||||
|
||||
function filterSmartContracts(options) {
|
||||
const { type, subType, dynamic = false } = options || {};
|
||||
console.log(options)
|
||||
let filteredSmartContracts = floGlobals.smartContracts || [];
|
||||
if (type) {
|
||||
filteredSmartContracts = filteredSmartContracts.filter(sc => {
|
||||
if (subType === '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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user