diff --git a/app/page.tsx b/app/page.tsx index 54a8adb..ffed1bc 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -14,7 +14,7 @@ import { runLC } from "@/repository/avail-light.repository"; import Link from "next/link"; export default function Home() { - const [blocksToProcess, setblocksToProcess] = useState>([]) + const [blocksToProcess, setBlocksToProcess] = useState>([]) const [latestBlock, setLatestBlock] = useState(null); const [blockList, setBlockList] = useState>([]); const [matrix, setMatrix] = useState({ @@ -44,7 +44,7 @@ export default function Home() { if (!processingBlock && blocksToProcess.length > 0) { const blockToProcess: BlockToProcess = blocksToProcess[0] processBlock(blockToProcess.block, blockToProcess.matrix, blockToProcess.randomCells, blockToProcess.proofs, blockToProcess.commitments) - setblocksToProcess((list: BlockToProcess[]) => list.slice(1, list.length)) + setBlocksToProcess((list: BlockToProcess[]) => list.slice(1, list.length)) } }, [blocksToProcess, processingBlock]) @@ -59,7 +59,7 @@ export default function Home() { ) => { addNewBlock(block, matrix); setProcessingBlock(true); - //Indivisual cell verification + //Individual cell verification let verifiedCount = 0; let verifiedCells: Cell[] = []; @@ -109,7 +109,7 @@ export default function Home() { const run = async () => { refreshApp(); - runLC(setblocksToProcess, setStop); + runLC(setBlocksToProcess, setStop); }; const scrollToBlocks = () => { diff --git a/repository/avail-light.repository.ts b/repository/avail-light.repository.ts index bf1be60..0265789 100644 --- a/repository/avail-light.repository.ts +++ b/repository/avail-light.repository.ts @@ -33,7 +33,7 @@ export async function runLC(onBlock: Function, registerUnsubscribe: Function): P const kate_Proof = Uint8Array.from(kateProof) const kate_commitment = Uint8Array.from(kateCommitment.match(/.{1,2}/g).map((byte: string) => parseInt(byte, 16))) - //Creating commitement array based on rows and proof array based on cells + //Creating commitment array based on rows and proof array based on cells let commitments: Uint8Array[] = [] for (let i = 0; i < (r * config.EXTENSION_FACTOR); i++) { commitments.push(kate_commitment.slice(i * config.COMMITMENT_SIZE, (i + 1) * config.COMMITMENT_SIZE))