update hook on calcaulator

This commit is contained in:
Denis Angell
2023-03-27 21:47:36 +00:00
parent df1897be10
commit f80d6e1747

View File

@@ -31,7 +31,8 @@ export type TTS = typeof TRANSACTION_TYPE_MAP
* @returns the hook on
*/
export function calculateHookOn(arr: Array<keyof TTS>): string {
let hash = '0x3e3ff5bf'
let hash =
'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffff'
arr.forEach((nth) => {
if (typeof nth !== 'string') {
throw new XrplError(`HookOn transaction type must be string`)