Skip to content

Commit

Permalink
Merge pull request #6757 from brave/uphold-transaction-amount
Browse files Browse the repository at this point in the history
Fixes transaction amount
  • Loading branch information
NejcZdovc authored Oct 2, 2020
2 parents 2bdee05 + 2eea9f2 commit 2be6c79
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 2be6c79

Please sign in to comment.