Skip to content

Commit

Permalink
chore: Fix compilation for upcoming libxrpl 2.3.0-rc1 (#1716)
Browse files Browse the repository at this point in the history
Fixes #1715
  • Loading branch information
godexsoft authored Nov 7, 2024
1 parent d04331d commit f3e7543
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rpc/RPCHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,15 +950,17 @@ accountHolds(
auto const blob = backend.fetchLedgerObject(key, sequence, yield);

if (!blob) {
amount.clear({currency, issuer});
amount.setIssue(ripple::Issue(currency, issuer));
amount.clear();
return amount;
}

ripple::SerialIter it{blob->data(), blob->size()};
ripple::SLE const sle{it, key};

if (zeroIfFrozen && isFrozen(backend, sequence, account, currency, issuer, yield)) {
amount.clear(ripple::Issue(currency, issuer));
amount.setIssue(ripple::Issue(currency, issuer));
amount.clear();
} else {
amount = sle.getFieldAmount(ripple::sfBalance);
if (account > issuer) {
Expand Down

0 comments on commit f3e7543

Please sign in to comment.