From 2eea9f25885aa98652722c6ee1cbd25540e286b5 Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Fri, 2 Oct 2020 09:58:18 +0200 Subject: [PATCH] Fixes transaction amount Resolves https://github.com/brave/brave-browser/issues/11818 --- .../endpoint/uphold/post_transaction/post_transaction.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/endpoint/uphold/post_transaction/post_transaction.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/endpoint/uphold/post_transaction/post_transaction.cc index 125c3fb20365..b52e59af8342 100644 --- a/vendor/bat-native-ledger/src/bat/ledger/internal/endpoint/uphold/post_transaction/post_transaction.cc +++ b/vendor/bat-native-ledger/src/bat/ledger/internal/endpoint/uphold/post_transaction/post_transaction.cc @@ -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);