From 0e201f39708093203be2820148f0a1b4f3b6471b Mon Sep 17 00:00:00 2001 From: fosse Date: Tue, 10 Oct 2023 15:45:07 -0400 Subject: [PATCH] fix , bug, i.e. replace , with . when making a nano transaction --- cw_nano/lib/nano_wallet.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cw_nano/lib/nano_wallet.dart b/cw_nano/lib/nano_wallet.dart index 398069b68..a4414c353 100644 --- a/cw_nano/lib/nano_wallet.dart +++ b/cw_nano/lib/nano_wallet.dart @@ -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; }