Skip to content

Commit 35fea2a

Browse files
inline ignore for depricated
1 parent 5cc1bed commit 35fea2a

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
...spellcheckerRule,
1111
cspell: {
1212
...cspellConfig,
13-
ignoreWords: ['sibligns', 'Elems', 'Froom', 'hextable']
13+
ignoreWords: ['Elems']
1414
}
1515
}
1616
]

src/lib/merkletree/proof.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export class Proof {
141141
* @deprecated The method should not be used and will be removed in the next major version,
142142
* please use proof.allSiblings instead
143143
*/
144+
// eslint-disable-next-line @cspell/spellchecker
144145
export const siblignsFroomProof = (proof: Proof): Siblings => {
145146
return proof.allSiblings();
146147
};

src/lib/utils/bytes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ export const setBitBigEndian = (bitMap: Bytes, n: number): void => {
2828
bitMap[bitMap.length - parseInt(`${n / 8}`) - 1] |= 1 << n % 8;
2929
};
3030

31-
const hextable = '0123456789abcdef';
31+
const hexTable = '0123456789abcdef';
3232
export const bytes2Hex = (u: Bytes): string => {
3333
const arr = new Array(u.length * 2);
3434
let j = 0;
3535
u.forEach((v) => {
36-
arr[j] = hextable[parseInt((v >> 4).toString(10))];
37-
arr[j + 1] = hextable[parseInt((v & 15).toString(10))];
36+
arr[j] = hexTable[parseInt((v >> 4).toString(10))];
37+
arr[j + 1] = hexTable[parseInt((v & 15).toString(10))];
3838
j += 2;
3939
});
4040

tests/full.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ for (let index = 0; index < storages.length; index++) {
260260
}
261261
});
262262

263-
it('test sibligns from proof', async () => {
263+
it('test siblings from proof', async () => {
264264
const sto = getTreeStorage();
265265
const mt = new Merkletree(sto, true, 140);
266266

0 commit comments

Comments
 (0)