Compare commits

...

4 Commits

Author SHA1 Message Date
muzam1l
2c3cfebe3a Fix HookOn initial value. 2023-03-28 15:14:43 +05:30
muzamil
6265a9cdbf Merge pull request #300 from XRPLF/fix/to-hex
Fix hex logic.
2023-03-27 21:20:08 +05:30
muzamil
1321b498cf Merge pull request #299 from XRPLF/fix/invoke-tx
Add `Destination` field to Invoke transaction.
2023-03-27 21:18:35 +05:30
muzam1l
2cf18ef61c Add Destination field to Invoke transaction. 2023-03-27 15:32:25 +05:30
2 changed files with 5 additions and 1 deletions

View File

@@ -287,6 +287,10 @@
}, },
{ {
"TransactionType": "Invoke", "TransactionType": "Invoke",
"Destination": {
"$type": "account",
"$value": ""
},
"Fee": "12" "Fee": "12"
}, },
{ {

View File

@@ -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])