Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaans committed Jul 14, 2023
1 parent 75c35f9 commit 93d168b
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions frontend/src/components/Editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down

0 comments on commit 93d168b

Please sign in to comment.