mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +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)
|
if (!sle)
|
||||||
return {STAmount(mptIssue, 0), account.name()};
|
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()};
|
return {amount, lookup(issuer).name()};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ namespace ripple {
|
|||||||
TxConsequences
|
TxConsequences
|
||||||
EscrowCreate::makeTxConsequences(PreflightContext const& ctx)
|
EscrowCreate::makeTxConsequences(PreflightContext const& ctx)
|
||||||
{
|
{
|
||||||
return TxConsequences{
|
auto const amount = ctx.tx[sfAmount];
|
||||||
ctx.tx, isXRP(ctx.tx[sfAmount]) ? ctx.tx[sfAmount].xrp() : beast::zero};
|
return TxConsequences{ctx.tx, isXRP(amount) ? amount.xrp() : beast::zero};
|
||||||
}
|
}
|
||||||
|
|
||||||
template <ValidIssueType T>
|
template <ValidIssueType T>
|
||||||
|
|||||||
Reference in New Issue
Block a user