Skip to content

Commit

Permalink
inline ignore for depricated
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Sep 10, 2024
1 parent 5cc1bed commit 35fea2a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
...spellcheckerRule,
cspell: {
...cspellConfig,
ignoreWords: ['sibligns', 'Elems', 'Froom', 'hextable']
ignoreWords: ['Elems']
}
}
]
Expand Down
1 change: 1 addition & 0 deletions src/lib/merkletree/proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class Proof {
* @deprecated The method should not be used and will be removed in the next major version,
* please use proof.allSiblings instead
*/
// eslint-disable-next-line @cspell/spellchecker
export const siblignsFroomProof = (proof: Proof): Siblings => {
return proof.allSiblings();
};
Expand Down
6 changes: 3 additions & 3 deletions src/lib/utils/bytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export const setBitBigEndian = (bitMap: Bytes, n: number): void => {
bitMap[bitMap.length - parseInt(`${n / 8}`) - 1] |= 1 << n % 8;
};

const hextable = '0123456789abcdef';
const hexTable = '0123456789abcdef';
export const bytes2Hex = (u: Bytes): string => {
const arr = new Array(u.length * 2);
let j = 0;
u.forEach((v) => {
arr[j] = hextable[parseInt((v >> 4).toString(10))];
arr[j + 1] = hextable[parseInt((v & 15).toString(10))];
arr[j] = hexTable[parseInt((v >> 4).toString(10))];
arr[j + 1] = hexTable[parseInt((v & 15).toString(10))];
j += 2;
});

Expand Down
2 changes: 1 addition & 1 deletion tests/full.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ for (let index = 0; index < storages.length; index++) {
}
});

it('test sibligns from proof', async () => {
it('test siblings from proof', async () => {
const sto = getTreeStorage();
const mt = new Merkletree(sto, true, 140);

Expand Down

0 comments on commit 35fea2a

Please sign in to comment.