mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
XRPLF review of XLS34 (#69)
* add amendment guard for sfTransferRate * make `sfTransferRate` optional * split tests into existing / xls34 * make variables `const` * clang-format * chage error code * guard optional `sfTransferRate` * rename tests * Guard Optional sfTransferRate * clang-format * fixup tests
This commit is contained in:
@@ -361,7 +361,7 @@ NoZeroEscrow::finalize(
|
||||
if (bad_ && rv.rules().enabled(featurePaychanAndEscrowForTokens) &&
|
||||
txn.isFieldPresent(sfTransactionType))
|
||||
{
|
||||
uint16_t tt = txn.getFieldU16(sfTransactionType);
|
||||
uint16_t const tt = txn.getFieldU16(sfTransactionType);
|
||||
if (tt == ttESCROW_CANCEL || tt == ttESCROW_FINISH)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user