send from stack fix

This commit is contained in:
julian 2023-12-10 12:42:37 -06:00
parent d911ea0e66
commit 1fb62d3e54

View file

@ -274,8 +274,10 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
onPressed: () {
final coin =
coinFromTickerCaseInsensitive(trade.payInCurrency);
final amount =
sendAmount.toAmount(fractionDigits: coin.decimals);
final amount = Amount.fromDecimal(
sendAmount,
fractionDigits: coin.decimals,
);
final address = trade.payInAddress;
Navigator.of(context).pushNamed(
@ -1347,11 +1349,13 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
SecondaryButton(
label: "Send from Stack",
onPressed: () {
final amount = sendAmount;
final address = trade.payInAddress;
final coin =
coinFromTickerCaseInsensitive(trade.payInCurrency);
final amount = Amount.fromDecimal(
sendAmount,
fractionDigits: coin.decimals,
);
final address = trade.payInAddress;
Navigator.of(context).pushNamed(
SendFromView.routeName,