Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo: fix some spell errors and camel case #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { runLC } from "@/repository/avail-light.repository";
import Link from "next/link";

export default function Home() {
const [blocksToProcess, setblocksToProcess] = useState<Array<BlockToProcess>>([])
const [blocksToProcess, setBlocksToProcess] = useState<Array<BlockToProcess>>([])
const [latestBlock, setLatestBlock] = useState<Block | null>(null);
const [blockList, setBlockList] = useState<Array<Block>>([]);
const [matrix, setMatrix] = useState<Matrix>({
Expand Down Expand Up @@ -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])

Expand All @@ -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[] = [];

Expand Down Expand Up @@ -109,7 +109,7 @@ export default function Home() {
const run = async () => {
refreshApp();

runLC(setblocksToProcess, setStop);
runLC(setBlocksToProcess, setStop);
};

const scrollToBlocks = () => {
Expand Down
2 changes: 1 addition & 1 deletion repository/avail-light.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down