From 14e2709b099ebe7dcbd692f6dcee36792e954308 Mon Sep 17 00:00:00 2001 From: Shawn Xie <35279399+shawnxie999@users.noreply.github.com> Date: Mon, 10 Jul 2023 15:38:39 -0400 Subject: [PATCH] feat: add Clawback flags (#777) --- src/containers/shared/transactionUtils.ts | 1 + src/rippled/lib/utils.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/containers/shared/transactionUtils.ts b/src/containers/shared/transactionUtils.ts index 429140874..5c346b1df 100644 --- a/src/containers/shared/transactionUtils.ts +++ b/src/containers/shared/transactionUtils.ts @@ -72,6 +72,7 @@ export const TX_FLAGS: Record> = { } export const ACCOUNT_FLAGS: Record = { + 16: 'asfAllowClawback', 15: 'asfDisallowIncomingTrustline', 14: 'asfDisallowIncomingPayChan', 13: 'asfDisallowIncomingCheck', diff --git a/src/rippled/lib/utils.js b/src/rippled/lib/utils.js index 6a0fa3103..69dd7165d 100644 --- a/src/rippled/lib/utils.js +++ b/src/rippled/lib/utils.js @@ -20,6 +20,7 @@ export const ACCOUNT_FLAGS = { 0x10000000: 'lsfDisallowIncomingPayChan', 0x20000000: 'lsfDisallowIncomingTrustline', 0x40000000: 'lsfAMM', + 0x80000000: 'lsfAllowClawback', } const NFT_FLAGS = { 0x00000001: 'lsfBurnable',