Skip to content

Commit

Permalink
Merge pull request #6772 from brave/pr6757_uphold-transaction-amount_…
Browse files Browse the repository at this point in the history
…1.15.x

Fixes transaction amount (uplift to 1.15.x)
  • Loading branch information
kjozwiak authored Oct 5, 2020
2 parents 44bf9a1 + a7f2cc0 commit c463908
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ std::string PostTransaction::GetUrl(const std::string& address) {
std::string PostTransaction::GeneratePayload(
const ::ledger::uphold::Transaction& transaction) {
base::Value denomination(base::Value::Type::DICTIONARY);
denomination.SetDoubleKey("amount", transaction.amount);
denomination.SetStringKey(
"amount",
base::StringPrintf("%f", transaction.amount));
denomination.SetStringKey("currency", "BAT");

base::Value payload(base::Value::Type::DICTIONARY);
Expand Down

0 comments on commit c463908

Please sign in to comment.