From 93d168b89209a1195c107d8d7390e0d085ebb0ba Mon Sep 17 00:00:00 2001 From: Roshaan Siddiqui Date: Fri, 14 Jul 2023 11:53:50 -0500 Subject: [PATCH] chore: clean up --- frontend/src/components/Editor/Editor.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/frontend/src/components/Editor/Editor.js b/frontend/src/components/Editor/Editor.js index 5d0dd3545..4d217e6b6 100644 --- a/frontend/src/components/Editor/Editor.js +++ b/frontend/src/components/Editor/Editor.js @@ -91,28 +91,6 @@ const Editor = ({ localStorage.setItem(DEBUG_LIST_STORAGE_KEY, heights); }, [heights]); - // useEffect(() => { - // if (selectedOption == "latestBlockHeight") { - // setBlockHeightError(null); - // return; - // } - // - // if (height - blockHeight > BLOCKHEIGHT_LIMIT) { - // setBlockHeightError( - // `Warning: Please enter a valid start block height. At the moment we only support historical indexing of the last ${BLOCKHEIGHT_LIMIT} blocks or ${BLOCKHEIGHT_LIMIT / 3600 - // } hrs. Choose a start block height between ${height - BLOCKHEIGHT_LIMIT - // } - ${height}.` - // ); - // } else if (blockHeight > height) { - // setBlockHeightError( - // `Warning: Start Block Hieght can not be in the future. Please choose a value between ${height - BLOCKHEIGHT_LIMIT - // } - ${height}.` - // ); - // } else { - // setBlockHeightError(null); - // } - // }, [blockHeight, height, selectedOption]); - const checkSQLSchemaFormatting = () => { try { let formatted_sql = formatSQL(schema); @@ -131,9 +109,7 @@ const Editor = ({ const forkIndexer = async(indexerName) => { let code = indexingCode; - setAccountId(currentUserAccountId) - let prevAccountId = indexerDetails.accountId.replaceAll(".", "_"); let newAccountId = currentUserAccountId.replaceAll(".", "_"); let prevIndexerName = indexerDetails.indexerName.replaceAll("-", "_").trim().toLowerCase();