mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
send from stack fix
This commit is contained in:
parent
d911ea0e66
commit
1fb62d3e54
1 changed files with 9 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue