Compare commits
4 Commits
fix/to-hex
...
fix/hook-o
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c3cfebe3a | ||
|
|
6265a9cdbf | ||
|
|
1321b498cf | ||
|
|
2cf18ef61c |
@@ -287,6 +287,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"TransactionType": "Invoke",
|
"TransactionType": "Invoke",
|
||||||
|
"Destination": {
|
||||||
|
"$type": "account",
|
||||||
|
"$value": ""
|
||||||
|
},
|
||||||
"Fee": "12"
|
"Fee": "12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export const tts = {
|
|||||||
export type TTS = typeof tts
|
export type TTS = typeof tts
|
||||||
|
|
||||||
const calculateHookOn = (arr: (keyof TTS)[]) => {
|
const calculateHookOn = (arr: (keyof TTS)[]) => {
|
||||||
let s = '0x3e3ff5bf'
|
let s = '0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffff'
|
||||||
arr.forEach(n => {
|
arr.forEach(n => {
|
||||||
let v = BigInt(s)
|
let v = BigInt(s)
|
||||||
v ^= BigInt(1) << BigInt(tts[n])
|
v ^= BigInt(1) << BigInt(tts[n])
|
||||||
|
|||||||
Reference in New Issue
Block a user