From deb352cf0300a20845af675f9e4b5a512a087ea9 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 25 Sep 2023 03:11:30 +0530 Subject: [PATCH 1/3] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 34e4342..79c6e33 100644 --- a/index.html +++ b/index.html @@ -2857,7 +2857,7 @@ if (type) { filteredSmartContracts = filteredSmartContracts.filter(sc => { if (type === 'external-trigger') { - return sc.status !== 'active'; // only inactive contracts can be triggered externally + 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 { From 008231738e7f8e6bd3d3485b4d1a0671250fcd4c Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 25 Sep 2023 03:13:07 +0530 Subject: [PATCH 2/3] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 79c6e33..f03990a 100644 --- a/index.html +++ b/index.html @@ -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; From 131ecf5bb41a908f940c7b0bc4b0c8bc668ee870 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 25 Sep 2023 03:22:52 +0530 Subject: [PATCH 3/3] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f03990a..4a0a3d4 100644 --- a/index.html +++ b/index.html @@ -3044,7 +3044,7 @@ }).then((res) => { if (!res) return buttonLoader('trigger_contract_button', true) - floBlockchainAPI.writeData(contractAddress, floData, triggerPrivateKey, contractAddress).then((txid) => { + floBlockchainAPI.writeData(triggerAddress, floData, triggerPrivateKey, contractAddress).then((txid) => { showTransactionResult(true, txid, { title: 'Contract trigger initiated', })