mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-15 00:25:51 +00:00
Make a few tweaks to the changes in 907cc19a
This commit is contained in:
@@ -215,7 +215,9 @@ Env::balance(Account const& account, MPTIssue const& mptIssue) const
|
||||
if (!sle)
|
||||
return {STAmount(mptIssue, 0), account.name()};
|
||||
|
||||
STAmount const amount{mptIssue, sle->getFieldU64(sfOutstandingAmount)};
|
||||
// Make it negative
|
||||
STAmount const amount{
|
||||
mptIssue, sle->getFieldU64(sfOutstandingAmount), 0, true};
|
||||
return {amount, lookup(issuer).name()};
|
||||
}
|
||||
else
|
||||
|
||||
@@ -81,8 +81,8 @@ namespace ripple {
|
||||
TxConsequences
|
||||
EscrowCreate::makeTxConsequences(PreflightContext const& ctx)
|
||||
{
|
||||
return TxConsequences{
|
||||
ctx.tx, isXRP(ctx.tx[sfAmount]) ? ctx.tx[sfAmount].xrp() : beast::zero};
|
||||
auto const amount = ctx.tx[sfAmount];
|
||||
return TxConsequences{ctx.tx, isXRP(amount) ? amount.xrp() : beast::zero};
|
||||
}
|
||||
|
||||
template <ValidIssueType T>
|
||||
|
||||
Reference in New Issue
Block a user