Skip to content

Commit

Permalink
add ClaimReward_tfOptOut flag
Browse files Browse the repository at this point in the history
  • Loading branch information
zgrguric committed Dec 13, 2023
1 parent 60146a7 commit e9996cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Utilities/Flags.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ final class Flags
'tfDisallowXRP' => 0x00100000,
'tfAllowXRP' => 0x00200000
],
'ClaimReward' => [
'tfOptOut' => 0x00000001
]
];

//todo account set asf flags... https://js.xrpl.org/enums/AccountSetAsfFlags.html
Expand Down Expand Up @@ -194,6 +197,9 @@ public static function description(string $transactiontype, string $flagname, bo
case 'AccountSet_tfAllowXRP':
$html = 'XRP is allowed to be sent to this account.';
break;
case 'ClaimReward_tfOptOut':
$html = 'The isOptOut flag in the ClaimReward is used to opt-out an account from rewards by removing reward-related fields from the account object in the ledger if the sfFlags field in the transaction is set to 1.';
break;
}

if(!$htmlFormat)
Expand Down

0 comments on commit e9996cb

Please sign in to comment.