fix , bug, i.e. replace , with . when making a nano transaction

This commit is contained in:
fosse 2023-10-10 15:45:07 -04:00
parent 9fad4e114f
commit 0e201f3970

View file

@ -170,7 +170,7 @@ abstract class NanoWalletBase
amt = balance[currency]?.currentBalance ?? BigInt.zero;
} else {
amt = BigInt.tryParse(
NanoUtil.getAmountAsRaw(txOut.cryptoAmount ?? "0", NanoUtil.rawPerNano)) ??
NanoUtil.getAmountAsRaw(txOut.cryptoAmount?.replaceAll(',', '.') ?? "0", NanoUtil.rawPerNano)) ??
BigInt.zero;
}