From a7f2cc0f278e088b91d4b28cc38b0b147dbc386d Mon Sep 17 00:00:00 2001 From: brave-builds Date: Mon, 5 Oct 2020 15:58:38 +0000 Subject: [PATCH] Uplift of #6757 (squashed) to release --- .../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);