mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
Release 4.4.4 (#451)
* Update build versions for Cake Wallet for ios and android. * Add formatted crypto amount to xmr transaction for anypay transactions. Hide order id and payment id if they are not exists on payment status screen. * Change build number for Cake Wallet ios and android. * Change ionia api to production endpoint. * Update version for monero.com app. * Update build number to cake wallet. * Fix for formatting amount for any_pay_payment totalAmount.
This commit is contained in:
parent
3cfe2ec532
commit
aa9ed08648
4 changed files with 12 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
|||
import 'package:cake_wallet/anypay/any_pay_chain.dart';
|
||||
import 'package:cw_bitcoin/bitcoin_amount_format.dart';
|
||||
import 'package:cw_core/monero_amount_format.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:cake_wallet/anypay/any_pay_payment_instruction.dart';
|
||||
import 'package:cake_wallet/bitcoin/bitcoin.dart';
|
||||
import 'package:cake_wallet/monero/monero.dart';
|
||||
|
||||
class AnyPayPayment {
|
||||
AnyPayPayment({
|
||||
|
@ -45,11 +45,11 @@ class AnyPayPayment {
|
|||
.fold<int>(0, (int outAcc, out) => outAcc + out.amount));
|
||||
switch (chain) {
|
||||
case AnyPayChain.xmr:
|
||||
return moneroAmountToString(amount: total);
|
||||
return monero.formatterMoneroAmountToString(amount: total);
|
||||
case AnyPayChain.btc:
|
||||
return bitcoinAmountToString(amount: total);
|
||||
return bitcoin.formatterBitcoinAmountToString(amount: total);
|
||||
case AnyPayChain.ltc:
|
||||
return bitcoinAmountToString(amount: total);
|
||||
return bitcoin.formatterBitcoinAmountToString(amount: total);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue