refactor.

This commit is contained in:
muzam1l
2023-02-07 14:00:57 +05:30
parent 76871a8041
commit c1815f272b
2 changed files with 1 additions and 60 deletions

View File

@@ -32,7 +32,7 @@ const calculateHookOn = (arr: (keyof TTS)[]) => {
let s = '0x3e3ff5bf'
arr.forEach(n => {
let v = BigInt(s)
v ^= BigInt(1) << BigInt(tts[n as keyof TTS])
v ^= BigInt(1) << BigInt(tts[n])
s = "0x" + v.toString(16)
})
s = s.replace('0x', '')

File diff suppressed because one or more lines are too long