mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
More toward using STAmount.
This commit is contained in:
@@ -159,7 +159,7 @@ Transaction::pointer Transaction::setCreate(
|
||||
{
|
||||
mTransaction->setITFieldU32(sfFlags, tfCreateAccount);
|
||||
mTransaction->setITFieldAccount(sfDestination, naCreateAccountID);
|
||||
mTransaction->setITFieldU64(sfAmount, uFund);
|
||||
mTransaction->setITFieldAmount(sfAmount, uFund);
|
||||
|
||||
sign(naPrivateKey);
|
||||
|
||||
@@ -192,7 +192,7 @@ Transaction::pointer Transaction::setPayment(
|
||||
STAmount saAmount)
|
||||
{
|
||||
mTransaction->setITFieldAccount(sfDestination, toAccount);
|
||||
mTransaction->setITFieldU64(sfAmount, saAmount);
|
||||
mTransaction->setITFieldAmount(sfAmount, saAmount);
|
||||
|
||||
sign(naPrivateKey);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user