Merge pull request #376 from cypherstack/paynyms

decimal places display consistency bugfix
This commit is contained in:
Diego Salazar 2023-02-27 09:40:43 -07:00 committed by GitHub
commit 54bc340c17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/constants.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/format.dart';
import 'package:stackwallet/utilities/text_styles.dart';
@ -29,7 +30,12 @@ class ConfirmPaynymConnectDialog extends StatelessWidget {
String get title => "Connect to $nymName";
String get message => "A one-time connection fee of "
"${Format.satoshisToAmount(amount, coin: coin)} ${coin.ticker} "
"${Format.satoshisToAmount(
amount,
coin: coin,
).toStringAsFixed(
Constants.decimalPlacesForCoin(coin),
)} ${coin.ticker} "
"will be charged to connect to this PayNym.\n\nThis fee "
"covers the cost of creating a one-time transaction to create a "
"record on the blockchain. This keeps PayNyms decentralized.";